#include <profiler.h>
Public Member Functions | |
ScopeProfiler (Profiler *profiler, const std::string &name, ScopeProfilerType type=SPT_ADD) | |
~ScopeProfiler () | |
Private Attributes | |
Profiler * | m_profiler = nullptr |
std::string | m_name |
TimeTaker * | m_timer = nullptr |
enum ScopeProfilerType | m_type |
ScopeProfiler::ScopeProfiler | ( | Profiler * | profiler, |
const std::string & | name, | ||
ScopeProfilerType | type = SPT_ADD |
||
) |
References m_name, m_profiler, m_timer, and PRECISION_MILLI.
ScopeProfiler::~ScopeProfiler | ( | ) |
References Profiler::add(), Profiler::avg(), Profiler::graphAdd(), m_name, m_profiler, m_timer, m_type, SPT_ADD, SPT_AVG, SPT_GRAPH_ADD, and TimeTaker::stop().
|
private |
Referenced by ScopeProfiler(), and ~ScopeProfiler().
|
private |
Referenced by ScopeProfiler(), and ~ScopeProfiler().
|
private |
Referenced by ScopeProfiler(), and ~ScopeProfiler().
|
private |
Referenced by ~ScopeProfiler().