HyperPlatform Programmer's Reference
Macros | Functions | Variables
performance.h File Reference

Declares interfaces to performance measurement functions. More...

#include "perf_counter.h"
Include dependency graph for performance.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HYPERPLATFORM_PERFORMANCE_MEASURE_THIS_SCOPE()
 

Functions

NTSTATUS PerfInitialization ()
 Makes HYPERPLATFORM_PERFORMANCE_MEASURE_THIS_SCOPE() ready for use. More...
 
void PerfTermination ()
 Ends performance monitoring and outputs its results. More...
 
ULONG64 PerfGetTime ()
 Returns the current "time" for performance measurement. More...
 

Variables

PerfCollectorg_performance_collector
 Stores all performance data collected by HYPERPLATFORM_PERFORMANCE_MEASURE_THIS_SCOPE(). More...
 

Detailed Description

Declares interfaces to performance measurement functions.

Definition in file performance.h.

Macro Definition Documentation

◆ HYPERPLATFORM_PERFORMANCE_MEASURE_THIS_SCOPE

#define HYPERPLATFORM_PERFORMANCE_MEASURE_THIS_SCOPE ( )

Definition at line 30 of file performance.h.

Function Documentation

◆ PerfGetTime()

ULONG64 PerfGetTime ( )

Returns the current "time" for performance measurement.

Returns
Current performance counter

It should only be used by HYPERPLATFORM_PERFORMANCE_MEASURE_THIS_SCOPE().

Definition at line 83 of file performance.cpp.

◆ PerfInitialization()

NTSTATUS PerfInitialization ( )

Makes HYPERPLATFORM_PERFORMANCE_MEASURE_THIS_SCOPE() ready for use.

Returns
STATUS_SUCCESS on success

Definition at line 53 of file performance.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PerfTermination()

void PerfTermination ( )

Ends performance monitoring and outputs its results.

Definition at line 73 of file performance.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_performance_collector

PerfCollector* g_performance_collector

Stores all performance data collected by HYPERPLATFORM_PERFORMANCE_MEASURE_THIS_SCOPE().

Definition at line 46 of file performance.cpp.