Measure elapsed time of the scope.
More...
#include <perf_counter.h>
|
static ULONG64 | RdTsc () |
| Gets the current time using the RDTSC instruction. More...
|
|
Measure elapsed time of the scope.
Definition at line 277 of file perf_counter.h.
◆ QueryTimeRoutine
◆ PerfCounter()
Gets the current time using query_time_routine.
- Parameters
-
collector | PerfCollector instance to store performance data |
query_time_routine | A function pointer for getting times |
location_name | A function name where being measured |
HYPERPLATFORM_PERFCOUNTER_MEASURE_TIME() should be used to create an instance of this class.
Definition at line 288 of file perf_counter.h.
◆ ~PerfCounter()
PerfCounter::~PerfCounter |
( |
| ) |
|
|
inline |
◆ RdTsc()
static ULONG64 PerfCounter::RdTsc |
( |
| ) |
|
|
inlinestaticprivate |
Gets the current time using the RDTSC instruction.
- Returns
- the current time
Definition at line 307 of file perf_counter.h.
◆ before_time_
const ULONG64 PerfCounter::before_time_ |
|
private |
◆ collector_
◆ location_name_
const char* PerfCounter::location_name_ |
|
private |
◆ query_time_routine_
The documentation for this class was generated from the following file: