|
Beatmup
|
Collects running time statistics of multiple tracks. More...
#include <profiler.h>
Classes | |
| class | Track |
Public Types | |
| enum class | ReportType { BRIEF , FULL } |
Public Member Functions | |
| Profiler () | |
| void | reset () |
| void | operator() (const std::string &track) |
| void | lap () |
| void | report (std::ostream &, ReportType type=ReportType::FULL) const |
| time_t | getTotal () const |
Private Types | |
| typedef uint64_t | time_t |
Private Attributes | |
| std::map< std::string, Track > | tracks |
| std::vector< std::pair< std::string, std::chrono::system_clock::time_point > > | running |
| time_t | total |
Collects running time statistics of multiple tracks.
Definition at line 31 of file profiler.h.
|
private |
Definition at line 33 of file profiler.h.
|
strong |
| Profiler::Profiler | ( | ) |
Definition at line 26 of file profiler.cpp.
| void Beatmup::Profiler::reset | ( | ) |
Definition at line 28 of file profiler.cpp.
| void Profiler::operator() | ( | const std::string & | track | ) |
Definition at line 33 of file profiler.cpp.
| void Profiler::lap | ( | ) |
Definition at line 37 of file profiler.cpp.
| void Profiler::report | ( | std::ostream & | stream, |
| ReportType | type = ReportType::FULL |
||
| ) | const |
Definition at line 56 of file profiler.cpp.
|
inline |
Definition at line 57 of file profiler.h.
|
private |
Definition at line 41 of file profiler.h.
|
private |
Definition at line 42 of file profiler.h.
|
private |
Definition at line 43 of file profiler.h.