This class contains profiler statistics information. More...
#include <CProfilerData2.h>
Public Types | |
| enum | ETimeType { ENetTimes , EGrossTimes , ECallTimes , EPeriodTimes , EOutsideTimes , EInactiveTimes = EOutsideTimes , EUnknown } |
| Time types. More... | |
Public Member Functions | |
| areaHandle_t | getAreaId () const |
| Returns ID of the profiler area (function, variable, AUX, ...), for which this statistics was measured. | |
| std::string | getAreaName () const |
| Returns name of the profiler area (function or variable), for which this statistics was measured. | |
| int64_t | getAreaValue () const |
| Returns value of the state area, for which this statistics was measured. | |
| int64_t | getAverageTime (ETimeType timeType) |
| Returns average time in nanoseconds for the given time type. | |
| int64_t | getCallAverageTime () const |
| int64_t | getCallMaxTime () const |
| int64_t | getCallMinTime () const |
| int64_t | getCallTotalTime () const |
| int64_t | getGrossAverageTime () const |
| int64_t | getGrossMaxTime () const |
| int64_t | getGrossMinTime () const |
| int64_t | getGrossTotalTime () const |
| DWORD | getHandle () const |
| int64_t | getMaxEndTime (ETimeType timeType) |
| Returns max end time in nanoseconds for the given time type. | |
| int64_t | getMaxStartTime (ETimeType timeType) |
| Returns max start time in nanoseconds for the given time type. | |
| int64_t | getMaxTime (ETimeType timeType) |
| Returns max time in nanoseconds for the given time type. | |
| int64_t | getMinEndTime (ETimeType timeType) |
| Returns min end time in nanoseconds for the given time type. | |
| int64_t | getMinStartTime (ETimeType timeType) |
| Returns min start time in nanoseconds for the given time type. | |
| int64_t | getMinTime (ETimeType timeType) |
| Returns min time in nanoseconds for the given time type. | |
| int64_t | getNetAverageTime () const |
| int64_t | getNetMaxTime () const |
| int64_t | getNetMinTime () const |
| int64_t | getNetTotalTime () const |
| DWORD | getNumHits () const |
| Returns the number of hits. | |
| int64_t | getOutsideAverageTime () const |
| int64_t | getOutsideMaxTime () const |
| int64_t | getOutsideMinTime () const |
| int64_t | getOutsideTotalTime () const |
| std::string | getParentAreaName () const |
| For state variables areas returns name of parent area (variable). | |
| int64_t | getPeriodAverageTime () const |
| int64_t | getPeriodMaxTime () const |
| int64_t | getPeriodMinTime () const |
| int64_t | getTotalTime (ETimeType timeType) |
| Returns total time in nanoseconds for the given time type. | |
| double | getValueAverage () |
| Returns average value if area is regular variable. | |
| double | getValueMax () |
| Returns max value if area is regular variable. | |
| double | getValueMin () |
| Returns min value if area is regular variable. | |
| int64_t | getValueTimeOfMax () |
| Returns time in nanoseconds when max value appeared for the first time, if area is regular variable. | |
| int64_t | getValueTimeOfMin () |
| Returns time in nanoseconds when min value appeared for the first time, if area is regular variable. | |
| std::string | toString () const |
| Returns string representation of this object. | |
This class contains profiler statistics information.
Python example: profiler_data.py
Time types.
| Enumerator | |
|---|---|
| ENetTimes | Identifies net times for function execution. Net time is time spent for code inside function body, without sub-functions called from this function. |
| EGrossTimes | Identifies gross times for function execution. Gross time is time spent for code inside function body, AND sub-functions called from this function. |
| ECallTimes | Identifies call times for function execution. Call time is gross time plus time spent in other contexts (tasks, interrupts) between entry/exit of this function. |
| EPeriodTimes | Identifies times between function invocation. Total time is not defined for this type of time. |
| EOutsideTimes |
|
| EInactiveTimes | Identifies inactive time for function execution or state variable - the time spent outside the body of the function or a state. |
|
inline |
Returns ID of the profiler area (function, variable, AUX, ...), for which this statistics was measured.
|
inline |
Returns name of the profiler area (function or variable), for which this statistics was measured.
|
inline |
Returns value of the state area, for which this statistics was measured.
If it is not state area, this method always returns 0.
|
inline |
Returns average time in nanoseconds for the given time type.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns handle of the profiler area (function, variable, AUX, ...), for which this statistics was measured.
|
inline |
Returns max end time in nanoseconds for the given time type.
|
inline |
Returns max start time in nanoseconds for the given time type.
|
inline |
Returns max time in nanoseconds for the given time type.
|
inline |
Returns min end time in nanoseconds for the given time type.
|
inline |
Returns min start time in nanoseconds for the given time type.
|
inline |
Returns min time in nanoseconds for the given time type.
|
inline |
|
inline |
|
inline |
|
inline |
Returns the total net time in nanoseconds for function execution. Net time is time spent for code inside function body, without sub-functions called from this function.
|
inline |
Returns the number of hits.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
For state variables areas returns name of parent area (variable).
Empty for other areas.
|
inline |
|
inline |
|
inline |
|
inline |
Returns total time in nanoseconds for the given time type.
|
inline |
Returns average value if area is regular variable.
|
inline |
Returns max value if area is regular variable.
|
inline |
Returns min value if area is regular variable.
|
inline |
Returns time in nanoseconds when max value appeared for the first time, if area is regular variable.
|
inline |
Returns time in nanoseconds when min value appeared for the first time, if area is regular variable.
|
inline |
Returns string representation of this object.