Responsible for collecting and saving data supplied by PerfCounter.
More...
#include <perf_counter.h>
|
using | InitialOutputRoutine = void(_In_opt_ void *output_context) |
| A function type for printing out a header line of results. More...
|
|
using | FinalOutputRoutine = void(_In_opt_ void *output_context) |
| A function type for printing out a footer line of results. More...
|
|
using | OutputRoutine = void(_In_ const char *location_name, _In_ ULONG64 total_execution_count, _In_ ULONG64 total_elapsed_time, _In_opt_ void *output_context) |
| A function type for printing out results. More...
|
|
using | LockRoutine = void(_In_opt_ void *lock_context) |
| A function type for acquiring and releasing a lock. More...
|
|
Responsible for collecting and saving data supplied by PerfCounter.
Definition at line 113 of file perf_counter.h.
◆ FinalOutputRoutine
A function type for printing out a footer line of results.
Definition at line 119 of file perf_counter.h.
◆ InitialOutputRoutine
A function type for printing out a header line of results.
Definition at line 116 of file perf_counter.h.
◆ LockRoutine
A function type for acquiring and releasing a lock.
Definition at line 128 of file perf_counter.h.
◆ OutputRoutine
using PerfCollector::OutputRoutine = void(_In_ const char* location_name, _In_ ULONG64 total_execution_count, _In_ ULONG64 total_elapsed_time, _In_opt_ void* output_context) |
A function type for printing out results.
Definition at line 125 of file perf_counter.h.
◆ AddData()
bool PerfCollector::AddData |
( |
_In_ const char * |
location_name, |
|
|
_In_ ULONG64 |
elapsed_time |
|
) |
| |
|
inline |
◆ GetPerfDataIndex()
ULONG PerfCollector::GetPerfDataIndex |
( |
_In_ const char * |
key | ) |
|
|
inlineprivate |
Returns an index of data corresponds to the location_name.
- Parameters
-
key | A location to get an index of corresponding data entry |
- Returns
- An index of data or kInvalidDataIndex
It adds a new entry when the key is not found in existing entries. Returns kInvalidDataIndex if a corresponding entry is not found and there is no room to add a new entry.
Definition at line 248 of file perf_counter.h.
◆ Initialize()
Constructor; call this only once before any other code in this module runs.
- Parameters
-
output_routine | A function pointer for printing out results |
initial_output_routine | A function pointer for printing a header line of results |
final_output_routine | A function pointer for printing a footer line of results |
lock_enter_routine | A function pointer for acquiring a lock |
lock_leave_routine | A function pointer for releasing a lock |
lock_context | An arbitrary parameter for lock_enter_routine and lock_leave_routine |
output_context | An arbitrary parameter for output_routine, initial_output_routine and final_output_routine. |
Definition at line 142 of file perf_counter.h.
◆ NoLockRoutine()
static void PerfCollector::NoLockRoutine |
( |
_In_opt_ void * |
lock_context | ) |
|
|
inlinestaticprivate |
Default empty lock and release routine.
- Parameters
-
Definition at line 237 of file perf_counter.h.
◆ NoOutputRoutine()
static void PerfCollector::NoOutputRoutine |
( |
_In_opt_ void * |
output_context | ) |
|
|
inlinestaticprivate |
Default empty output routine.
- Parameters
-
Definition at line 231 of file perf_counter.h.
◆ Terminate()
void PerfCollector::Terminate |
( |
| ) |
|
|
inline |
Destructor; prints out accumulated performance results.
Definition at line 161 of file perf_counter.h.
◆ data_
◆ final_output_routine_
◆ initial_output_routine_
◆ kInvalidDataIndex
const ULONG PerfCollector::kInvalidDataIndex = MAXULONG |
|
staticprivate |
◆ kMaxNumberOfDataEntries
const ULONG PerfCollector::kMaxNumberOfDataEntries = 200 |
|
staticprivate |
◆ lock_context_
void* PerfCollector::lock_context_ |
|
private |
◆ lock_enter_routine_
◆ lock_leave_routine_
◆ output_context_
void* PerfCollector::output_context_ |
|
private |
◆ output_routine_
The documentation for this class was generated from the following file: