winIDEA SDK
isys::CProfilerStatistics2 Class Reference

Description

This class contains profiler statistics information.

Python example: profiler_data.py

#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.
 
DWORD getHandle () const
 
std::string getAreaName () const
 Returns name of the profiler area (function or variable), for which this statistics was measured.
 
std::string getParentAreaName () const
 For state variables areas returns name of parent area (variable). More...
 
int64_t getAreaValue () const
 Returns value of the state area, for which this statistics was measured. More...
 
DWORD getNumHits () const
 Returns the number of hits.
 
int64_t getTotalTime (ETimeType timeType)
 Returns total time for the given time type.
 
int64_t getMinTime (ETimeType timeType)
 Returns min time for the given time type.
 
int64_t getMinStartTime (ETimeType timeType)
 Returns min start time for the given time type.
 
int64_t getMinEndTime (ETimeType timeType)
 Returns min end time for the given time type.
 
int64_t getMaxTime (ETimeType timeType)
 Returns max time for the given time type.
 
int64_t getMaxStartTime (ETimeType timeType)
 Returns max start time for the given time type.
 
int64_t getMaxEndTime (ETimeType timeType)
 Returns max end time for the given time type.
 
int64_t getAverageTime (ETimeType timeType)
 Returns average time for the given time type.
 
double getValueAverage ()
 Returns average value if area is regular variable.
 
double getValueMin ()
 Returns min value if area is regular variable.
 
double getValueMax ()
 Returns max value if area is regular variable.
 
int64_t getValueTimeOfMin ()
 Returns time when min value appeared for the first time, if area is regular variable.
 
int64_t getValueTimeOfMax ()
 Returns time when max value appeared for the first time, if area is regular variable.
 
int64_t getNetTotalTime () const
 
int64_t getNetMinTime () const
 
int64_t getNetMaxTime () const
 
int64_t getNetAverageTime () const
 
int64_t getGrossTotalTime () const
 
int64_t getGrossMinTime () const
 
int64_t getGrossMaxTime () const
 
int64_t getGrossAverageTime () const
 
int64_t getCallTotalTime () const
 
int64_t getCallMinTime () const
 
int64_t getCallMaxTime () const
 
int64_t getCallAverageTime () const
 
int64_t getPeriodMinTime () const
 
int64_t getPeriodMaxTime () const
 
int64_t getPeriodAverageTime () const
 
int64_t getOutsideTotalTime () const
 
int64_t getOutsideMinTime () const
 
int64_t getOutsideMaxTime () const
 
int64_t getOutsideAverageTime () const
 
std::string toString () const
 Returns string representation of this object.
 

Member Enumeration Documentation

◆ ETimeType

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 
Deprecated:
use EInactiveTimes instead
EInactiveTimes 

Identifies inactive time for function execution or state variable - the time spent outside the body of the function or a state.

Member Function Documentation

◆ getAreaValue()

int64_t isys::CProfilerStatistics2::getAreaValue ( ) const
inline

Returns value of the state area, for which this statistics was measured.

If it is not state area, this method always returns 0.

◆ getCallAverageTime()

int64_t isys::CProfilerStatistics2::getCallAverageTime ( ) const
inline
Deprecated:
use getAverageTime(ETimeType) instead. Returns the average call time for function execution. Call time is gross time plus time spent in other contexts (tasks, interrupts) between entry/exit of this function.

◆ getCallMaxTime()

int64_t isys::CProfilerStatistics2::getCallMaxTime ( ) const
inline
Deprecated:
use getMaxTime(ETimeType) instead. Returns the max call time for function execution. Call time is gross time plus time spent in other contexts (tasks, interrupts) between entry/exit of this function.

◆ getCallMinTime()

int64_t isys::CProfilerStatistics2::getCallMinTime ( ) const
inline
Deprecated:
use getMinTime(ETimeType) instead. Returns the min call time for function execution. Call time is gross time plus time spent in other contexts (tasks, interrupts) between entry/exit of this function.

◆ getCallTotalTime()

int64_t isys::CProfilerStatistics2::getCallTotalTime ( ) const
inline
Deprecated:
use getTotalTime(ETimeType) instead. Returns the total call time for function execution. Call time is gross time plus time spent in other contexts (tasks, interrupts) between entry/exit of this function.

◆ getGrossAverageTime()

int64_t isys::CProfilerStatistics2::getGrossAverageTime ( ) const
inline
Deprecated:
use getAverageTime(ETimeType) instead. Returns the average gross time for function execution. Gross time is time spent for code inside function body, AND sub-functions called from this function.

◆ getGrossMaxTime()

int64_t isys::CProfilerStatistics2::getGrossMaxTime ( ) const
inline
Deprecated:
use getMaxTime(ETimeType) instead. Returns the max gross time for function execution. Gross time is time spent for code inside function body, AND sub-functions called from this function.

◆ getGrossMinTime()

int64_t isys::CProfilerStatistics2::getGrossMinTime ( ) const
inline
Deprecated:
use getMinTime(ETimeType) instead. Returns the min gross time for function execution. Gross time is time spent for code inside function body, AND sub-functions called from this function.

◆ getGrossTotalTime()

int64_t isys::CProfilerStatistics2::getGrossTotalTime ( ) const
inline
Deprecated:
use getTotalTime(ETimeType) instead. Returns the total gross time for function execution. Gross time is time spent for code inside function body, AND sub-functions called from this function.

◆ getHandle()

DWORD isys::CProfilerStatistics2::getHandle ( ) const
inline
Deprecated:
use getAreaId instead

Returns handle of the profiler area (function, variable, AUX, ...), for which this statistics was measured.

◆ getNetAverageTime()

int64_t isys::CProfilerStatistics2::getNetAverageTime ( ) const
inline
Deprecated:
use getAverageTime(ETimeType) instead. Returns the average net time for function execution. Net time is time spent for code inside function body, without sub-functions called from this function.

◆ getNetMaxTime()

int64_t isys::CProfilerStatistics2::getNetMaxTime ( ) const
inline
Deprecated:
use getMaxTime(ETimeType) instead. Returns the max net time for function execution. Net time is time spent for code inside function body, without sub-functions called from this function.

◆ getNetMinTime()

int64_t isys::CProfilerStatistics2::getNetMinTime ( ) const
inline
Deprecated:
use getMinTime(ETimeType) instead. Returns the min net time for function execution. Net time is time spent for code inside function body, without sub-functions called from this function.

◆ getNetTotalTime()

int64_t isys::CProfilerStatistics2::getNetTotalTime ( ) const
inline
Deprecated:
use getTotalTime(ETimeType) instead.

Returns the total net time for function execution. Net time is time spent for code inside function body, without sub-functions called from this function.

◆ getOutsideAverageTime()

int64_t isys::CProfilerStatistics2::getOutsideAverageTime ( ) const
inline
Deprecated:
use getAverageTime(ETimeType) instead. Returns the average outside time for function execution. Outside Time indicates the time spent outside the body of the function or a state - where the function state is Inactive.

◆ getOutsideMaxTime()

int64_t isys::CProfilerStatistics2::getOutsideMaxTime ( ) const
inline
Deprecated:
use getMaxTime(ETimeType) instead. Returns the max outside time for function execution. Outside Time indicates the time spent outside the body of the function or a state - where the function state is Inactive.

◆ getOutsideMinTime()

int64_t isys::CProfilerStatistics2::getOutsideMinTime ( ) const
inline
Deprecated:
use getMinTime(ETimeType) instead. Returns the min outside time for function execution. Outside Time indicates the time spent outside the body of the function or a state - where the function state is Inactive.

◆ getOutsideTotalTime()

int64_t isys::CProfilerStatistics2::getOutsideTotalTime ( ) const
inline
Deprecated:
use getTotalTime(ETimeType) instead. Returns the total outside time for function execution. Outside Time indicates the time spent outside the body of the function or a state - where the function state is Inactive.

◆ getParentAreaName()

std::string isys::CProfilerStatistics2::getParentAreaName ( ) const
inline

For state variables areas returns name of parent area (variable).

Empty for other areas.

◆ getPeriodAverageTime()

int64_t isys::CProfilerStatistics2::getPeriodAverageTime ( ) const
inline
Deprecated:
use getAverageTime(ETimeType) instead. Returns the average time between function invocation.

◆ getPeriodMaxTime()

int64_t isys::CProfilerStatistics2::getPeriodMaxTime ( ) const
inline
Deprecated:
use getMaxTime(ETimeType) instead. Returns the maximum time between function invocation.

◆ getPeriodMinTime()

int64_t isys::CProfilerStatistics2::getPeriodMinTime ( ) const
inline
Deprecated:
use getMinTime(ETimeType) instead. Returns the minimum time between function invocation.