30 void add(
const std::string &name,
float value);
31 void avg(
const std::string &name,
float value);
32 void max(
const std::string &name,
float value);
35 float getValue(
const std::string &name)
const;
42 int print(std::ostream &o, u32 page = 1, u32 pagecount = 1);
46 void graphSet(
const std::string &
id,
float value)
51 void graphAdd(
const std::string &
id,
float value)
63 assert(result.empty());
90 std::map<std::string, DataPair>
m_data;
void graphPop(GraphValues &result)
Definition profiler.h:60
u64 m_start_time
Definition profiler.h:92
void graphAdd(const std::string &id, float value)
Definition profiler.h:51
void getPage(GraphValues &o, u32 page, u32 pagecount)
Definition profiler.cpp:148
void max(const std::string &name, float value)
Definition profiler.cpp:62
void avg(const std::string &name, float value)
Definition profiler.cpp:76
void add(const std::string &name, float value)
Definition profiler.cpp:48
void remove(const std::string &name)
Definition profiler.h:67
int getAvgCount(const std::string &name) const
Definition profiler.cpp:106
Profiler()
Definition profiler.cpp:43
void clear()
Definition profiler.cpp:90
void graphSet(const std::string &id, float value)
Definition profiler.h:46
float getValue(const std::string &name) const
Definition profiler.cpp:98
std::mutex m_mutex
Definition profiler.h:89
u64 getElapsedMs() const
Definition profiler.cpp:115
int print(std::ostream &o, u32 page=1, u32 pagecount=1)
Definition profiler.cpp:120
std::map< std::string, float > m_graphvalues
Definition profiler.h:91
std::map< std::string, DataPair > m_data
Definition profiler.h:90
std::map< std::string, float > GraphValues
Definition profiler.h:39
Definition profiler.h:106
~ScopeProfiler()
Definition profiler.cpp:20
u64 m_time1
Definition profiler.h:116
std::string m_name
Definition profiler.h:115
Profiler * m_profiler
Definition profiler.h:114
ScopeProfiler(Profiler *profiler, const std::string &name, ScopeProfilerType type=SPT_ADD, TimePrecision precision=PRECISION_MILLI)
Definition profiler.cpp:11
TimePrecision m_precision
Definition profiler.h:118
ScopeProfilerType m_type
Definition profiler.h:117
std::lock_guard< std::mutex > MutexAutoLock
Definition mutex_auto_lock.h:31
ScopeProfilerType
Definition profiler.h:96
@ SPT_MAX
Definition profiler.h:100
@ SPT_AVG
Definition profiler.h:98
@ SPT_ADD
Definition profiler.h:97
@ SPT_GRAPH_ADD
Definition profiler.h:99
Profiler * g_profiler
Definition profiler.cpp:9
float value
Definition profiler.h:75
int avgcount
Definition profiler.h:76
void reset()
Definition profiler.h:78
float getValue() const
Definition profiler.h:84