#include <Profiler.h>
Collaboration diagram for Profiles:

This class is a singleton
Definition at line 53 of file 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 |
typedef std::pair<clock_t, RealTime> Profiles::TimePair [protected] |
Definition at line 65 of file Profiler.h.
typedef std::pair<int, TimePair> Profiles::ProfilePair [protected] |
Definition at line 66 of file Profiler.h.
typedef std::map<const char *, ProfilePair> Profiles::ProfileMap [protected] |
Definition at line 67 of file Profiler.h.
typedef std::map<const char *, TimePair> Profiles::LastCallMap [protected] |
Definition at line 68 of file Profiler.h.
typedef std::map<const char *, TimePair> Profiles::WorstCallMap [protected] |
Definition at line 69 of file Profiler.h.
| Profiles::~Profiles | ( | ) |
| Profiles::Profiles | ( | ) | [protected] |
| Profiles * Profiles::getInstance | ( | ) | [static] |
Definition at line 35 of file Profiler.cpp.
References m_instance, and Profiles().
Referenced by MainWindow::~MainWindow(), MainWindowBase::~MainWindowBase(), and Profiler::~Profiler().
| 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::~Profiler().
| void Profiles::dump | ( | ) | const |
Definition at line 79 of file Profiler.cpp.
References m_profiles, and m_worstCalls.
Referenced by MainWindow::~MainWindow(), MainWindowBase::~MainWindowBase(), and ~Profiles().
ProfileMap Profiles::m_profiles [protected] |
LastCallMap Profiles::m_lastCalls [protected] |
WorstCallMap Profiles::m_worstCalls [protected] |
Profiles * Profiles::m_instance [static, protected] |
1.5.1