BioDynaMo
v1.05.125-2619fe54
Home
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
k
l
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
i
l
n
o
p
r
s
t
u
v
w
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
b
c
d
e
f
i
n
p
r
t
v
Enumerations
Enumerator
Related Functions
:
d
e
i
m
o
p
r
s
t
Files
File List
File Members
All
_
b
c
d
h
n
p
s
Functions
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
core
util
vtune_helper.h
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------
2
//
3
// Copyright (C) 2021 CERN & University of Surrey for the benefit of the
4
// BioDynaMo collaboration. All Rights Reserved.
5
//
6
// Licensed under the Apache License, Version 2.0 (the "License");
7
// you may not use this file except in compliance with the License.
8
//
9
// See the LICENSE file distributed with this work for details.
10
// See the NOTICE file distributed with this work for additional information
11
// regarding copyright ownership.
12
//
13
// -----------------------------------------------------------------------------
14
15
#ifndef CORE_OPERATION_VTUNE_HELPER_H_
16
#define CORE_OPERATION_VTUNE_HELPER_H_
17
18
#include "
core/util/vtune.h
"
19
20
namespace
bdm
{
21
32
class
VTuneTask
{
33
public
:
34
explicit
VTuneTask
(
const
std::string& task_name) {
35
domain_
=
__itt_domain_create
(
"BDMTraces.MyDomain"
);
36
task_
=
__itt_string_handle_create
(task_name.c_str());
37
}
38
39
void
Start
() {
__itt_task_begin
(
domain_
, __itt_null, __itt_null,
task_
); }
40
41
void
Stop
() {
__itt_task_end
(
domain_
); }
42
43
private
:
44
__itt_domain
*
domain_
;
45
__itt_string_handle
*
task_
;
46
};
47
48
}
// namespace bdm
49
50
#endif // CORE_OPERATION_VTUNE_HELPER_H_
bdm
Definition:
agent.cc:39
bdm::VTuneTask::Stop
void Stop()
Definition:
vtune_helper.h:41
__itt_domain_create
__itt_domain * __itt_domain_create(const char *)
Definition:
vtune.h:46
__itt_task_begin
void __itt_task_begin(__itt_domain *, __itt_null_t, __itt_null_t, __itt_string_handle *)
Definition:
vtune.h:56
__itt_string_handle_create
__itt_string_handle * __itt_string_handle_create(const char *)
Definition:
vtune.h:51
bdm::VTuneTask::domain_
__itt_domain * domain_
Definition:
vtune_helper.h:44
bdm::VTuneTask::Start
void Start()
Definition:
vtune_helper.h:39
bdm::VTuneTask
Definition:
vtune_helper.h:32
__itt_string_handle
Definition:
vtune.h:41
vtune.h
__itt_task_end
void __itt_task_end(__itt_domain *)
Definition:
vtune.h:61
__itt_domain
Definition:
vtune.h:40
bdm::VTuneTask::task_
__itt_string_handle * task_
Definition:
vtune_helper.h:45
bdm::VTuneTask::VTuneTask
VTuneTask(const std::string &task_name)
Definition:
vtune_helper.h:34
Generated by
1.8.17