Profiler Class Reference
LibRPA
|
Profiler Class Reference
A simple profiler object to record timing of code snippet runs in the program. More...
#include <profiler.h>
Public Member Functions | |
Profiler (const Profiler &)=delete | |
Profiler (Profiler &&)=delete | |
Static Public Member Functions | |
static void | add (const char *tname, const char *tnote="", int level=-1) noexcept |
Add a timer. | |
static void | start (const char *tname, const char *tnote="", int level=-1) noexcept |
Start a timer. If the timer is not added before, add it. | |
static void | stop (const char *tname) noexcept |
Stop a timer and record the timing. | |
static double | get_cpu_time_last (const char *tname) noexcept |
Get cpu time of last call of timer. | |
static double | get_wall_time_last (const char *tname) noexcept |
Get wall time of last call of timer. | |
static void | display (int verbose=0) noexcept |
Display the current profiling result. | |
static int | get_num_timers () noexcept |
Get the number of created timers. | |
Detailed Description
A simple profiler object to record timing of code snippet runs in the program.
The documentation for this class was generated from the following files:
- profiler.h
- profiler.cpp
Generated by