Cppcheck
|
#include <timer.h>
Public Member Functions | |
TimerResults ()=default | |
void | showResults (SHOWTIME_MODES mode) const |
void | addResults (const std::string &str, std::clock_t clocks) override |
void | reset () |
Public Member Functions inherited from TimerResultsIntf | |
virtual | ~TimerResultsIntf ()=default |
Private Attributes | |
std::map< std::string, TimerResultsData > | mResults |
std::mutex | mResultsSync |
|
default |
|
overridevirtual |
Implements TimerResultsIntf.
Definition at line 91 of file timer.cpp.
References mResults, and mResultsSync.
void TimerResults::reset | ( | ) |
Definition at line 99 of file timer.cpp.
References mResults, and mResultsSync.
Referenced by CppCheck::resetTimerResults().
void TimerResults::showResults | ( | SHOWTIME_MODES | mode | ) | const |
Definition at line 41 of file timer.cpp.
References TimerResultsData::mClocks, mResults, mResultsSync, TimerResultsData::seconds(), SHOWTIME_FILE_TOTAL, SHOWTIME_NONE, SHOWTIME_TOP5_FILE, SHOWTIME_TOP5_SUMMARY, and startsWith().
Referenced by CppCheck::printTimerResults().
|
private |
Definition at line 66 of file timer.h.
Referenced by addResults(), reset(), and showResults().
|
mutableprivate |
Definition at line 67 of file timer.h.
Referenced by addResults(), reset(), and showResults().