Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
b
c
d
e
h
i
l
m
n
p
r
s
u
x
Typedefs
b
c
d
e
f
g
i
m
p
r
u
v
Enumerations
Enumerator
a
b
f
g
i
m
n
r
s
u
Classes
Class List
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
l
m
n
o
p
r
s
t
u
v
w
x
y
~
Variables
_
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
Typedefs
a
b
c
d
e
f
h
i
m
n
p
q
r
s
t
u
v
x
Enumerations
a
c
d
e
f
k
l
m
p
r
s
t
v
w
Enumerator
a
b
d
f
g
h
i
l
m
n
o
p
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
b
c
d
e
f
g
m
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
w
Typedefs
Enumerations
Enumerator
Macros
_
d
f
i
m
n
p
s
t
u
src
utility
XLinkGlobalProfilingLogger.hpp
Go to the documentation of this file.
1
2
#pragma once
3
4
#include <mutex>
5
#include <vector>
6
#include <unordered_map>
7
#include <string>
8
#include <cstdint>
9
#include <thread>
10
11
// project
12
#include <
depthai/device/Device.hpp
>
13
#include <
depthai/device/DeviceBootloader.hpp
>
14
#include <
depthai/openvino/OpenVINO.hpp
>
15
#include <
depthai/utility/Path.hpp
>
16
17
namespace
dai
{
18
19
class
XLinkGlobalProfilingLogger
{
20
// private constructor
21
XLinkGlobalProfilingLogger
();
22
~XLinkGlobalProfilingLogger
();
23
24
std::atomic<bool>
running
{
false
};
25
std::atomic<float>
rate
{1.0f};
26
std::thread
thr
;
27
28
public
:
29
static
XLinkGlobalProfilingLogger
&
getInstance
();
30
XLinkGlobalProfilingLogger
(
XLinkGlobalProfilingLogger
const
&) =
delete
;
31
void
operator=
(
XLinkGlobalProfilingLogger
const
&) =
delete
;
32
33
void
enable
(
bool
enable
);
34
void
setRate
(
float
hz);
35
float
getRate
();
36
};
37
38
}
// namespace dai
dai::XLinkGlobalProfilingLogger::enable
void enable(bool enable)
Definition:
XLinkGlobalProfilingLogger.cpp:15
dai::XLinkGlobalProfilingLogger::running
std::atomic< bool > running
Definition:
XLinkGlobalProfilingLogger.hpp:24
dai::XLinkGlobalProfilingLogger
Definition:
XLinkGlobalProfilingLogger.hpp:19
Device.hpp
dai::XLinkGlobalProfilingLogger::thr
std::thread thr
Definition:
XLinkGlobalProfilingLogger.hpp:26
DeviceBootloader.hpp
dai::XLinkGlobalProfilingLogger::setRate
void setRate(float hz)
Definition:
XLinkGlobalProfilingLogger.cpp:45
Path.hpp
dai::XLinkGlobalProfilingLogger::XLinkGlobalProfilingLogger
XLinkGlobalProfilingLogger()
Definition:
XLinkGlobalProfilingLogger.cpp:13
dai::XLinkGlobalProfilingLogger::getRate
float getRate()
Definition:
XLinkGlobalProfilingLogger.cpp:49
OpenVINO.hpp
dai::XLinkGlobalProfilingLogger::~XLinkGlobalProfilingLogger
~XLinkGlobalProfilingLogger()
Definition:
XLinkGlobalProfilingLogger.cpp:52
dai::XLinkGlobalProfilingLogger::operator=
void operator=(XLinkGlobalProfilingLogger const &)=delete
dai::XLinkGlobalProfilingLogger::rate
std::atomic< float > rate
Definition:
XLinkGlobalProfilingLogger.hpp:25
dai::XLinkGlobalProfilingLogger::getInstance
static XLinkGlobalProfilingLogger & getInstance()
Definition:
XLinkGlobalProfilingLogger.cpp:56
dai
Definition:
CameraExposureOffset.hpp:6
depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19