svcore
1.9
|
Profiling classes. More...
#include <Profiler.h>
Public Member Functions | |
~Profiles () | |
void | accumulate (const char *id, clock_t time, RealTime rt) |
void | dump () const |
Static Public Member Functions | |
static Profiles * | getInstance () |
Protected Types | |
typedef std::pair< clock_t, RealTime > | TimePair |
typedef std::pair< int, TimePair > | ProfilePair |
typedef std::map< const char *, ProfilePair > | ProfileMap |
typedef std::map< const char *, TimePair > | LastCallMap |
typedef std::map< const char *, TimePair > | WorstCallMap |
Protected Member Functions | |
Profiles () | |
Protected Attributes | |
ProfileMap | m_profiles |
LastCallMap | m_lastCalls |
WorstCallMap | m_worstCalls |
Static Protected Attributes | |
static Profiles * | m_instance = nullptr |
Detailed Description
Profiling classes.
The class holding all profiling data
This class is a singleton
Definition at line 56 of file Profiler.h.
Member Typedef Documentation
|
protected |
Definition at line 71 of file Profiler.h.
|
protected |
Definition at line 72 of file Profiler.h.
|
protected |
Definition at line 73 of file Profiler.h.
|
protected |
Definition at line 74 of file Profiler.h.
|
protected |
Definition at line 75 of file Profiler.h.
Constructor & Destructor Documentation
Profiles::~Profiles | ( | ) |
Definition at line 45 of file Profiler.cpp.
References dump().
|
protected |
Definition at line 41 of file Profiler.cpp.
Referenced by getInstance().
Member Function Documentation
|
static |
Definition at line 34 of file Profiler.cpp.
References m_instance, and Profiles().
Referenced by Profiler::end().
void Profiles::accumulate | ( | const char * | id, |
clock_t | time, | ||
RealTime | rt | ||
) |
Definition at line 51 of file Profiler.cpp.
References m_lastCalls, m_profiles, and m_worstCalls.
Referenced by Profiler::end().
void Profiles::dump | ( | ) | const |
Definition at line 74 of file Profiler.cpp.
References m_profiles, and m_worstCalls.
Referenced by ~Profiles().
Member Data Documentation
|
protected |
Definition at line 76 of file Profiler.h.
Referenced by accumulate(), and dump().
|
protected |
Definition at line 77 of file Profiler.h.
Referenced by accumulate().
|
protected |
Definition at line 78 of file Profiler.h.
Referenced by accumulate(), and dump().
|
staticprotected |
Definition at line 81 of file Profiler.h.
Referenced by getInstance().
The documentation for this class was generated from the following files:
Generated by 1.8.11