code_profiler
src
scoped_timer.cpp
Go to the documentation of this file.
1
#include "
tue/profiling/scoped_timer.h
"
2
#include "
tue/profiling/profiler.h
"
3
4
namespace
tue
5
{
6
7
// ----------------------------------------------------------------------------------------------------
8
9
ScopedTimer::ScopedTimer
(
Profiler
&
profiler
,
const
std::string
& label)
10
: profiler_(
profiler
)
11
{
12
profiler_
.
startTimer
(label);
13
}
14
15
// ----------------------------------------------------------------------------------------------------
16
17
ScopedTimer::~ScopedTimer
()
18
{
19
profiler_
.
stopTimer
();
20
}
21
22
}
std::string
tue::Profiler::stopTimer
void stopTimer()
Definition:
profiler.cpp:64
tue::Profiler::startTimer
void startTimer(const std::string &name)
Definition:
profiler.cpp:38
tue::ScopedTimer::ScopedTimer
ScopedTimer(Profiler &profiler, const std::string &label)
Definition:
scoped_timer.cpp:9
tue::ScopedTimer::~ScopedTimer
virtual ~ScopedTimer()
Definition:
scoped_timer.cpp:17
tue::ScopedTimer::profiler_
Profiler & profiler_
Definition:
scoped_timer.h:22
profiler.h
profiler
tue::Profiler profiler
Definition:
test_profiler.cpp:4
tue::Profiler
Definition:
profiler.h:11
scoped_timer.h
tue
Definition:
loop_timer.h:8
Generated on Sun Feb 23 2025 04:33:26 for code_profiler by
1.8.17