winIDEA SDK
isys::CProfilerTimeEvent Class Reference

Description

This class contains information of one profiler time-line event.

Python example: profiler_data.py

#include <CProfilerData2.h>

Public Types

enum  EEventType {
  EEvAny , EEvWrite ,
  EEvSuspend , EEvResume ,
  EEvEnter , EEvExit
}
 This enum defines profiler time-line events. More...
 

Public Member Functions

areaHandle_t getAreaId ()
 Returns ID of the area, for which event was recorded.
 
DWORD getHandle ()
 
EEventType getEventType ()
 Returns event type.
 
int64_t getValue ()
 Returns value of integer variable or digital AUX port. More...
 
int64_t getSignedValue ()
 
double getFloatValue ()
 Returns float value of float variables and analog AUX ports, 0 for functions.
 
std::string getUnit ()
 Returns unit of analog AUX port, empty string for all other areas.
 
int64_t getTime ()
 Returns time of event.
 
int getEventSource ()
 Returns source of event or -1 if it does not exist for an event.
 
std::string toString ()
 Returns string representation of this object.
 

Member Enumeration Documentation

◆ EEventType

This enum defines profiler time-line events.

Enumerator
EEvAny 

any event, this value can be used by iterator to return all events

EEvWrite 

variable write events

EEvSuspend 

function/task/interrupt/... execution was suspended, for example function called another function

EEvResume 

function/task/interrupt/... execution was resumed, for example function call returned to the function which called it

EEvEnter 

function/task/interrupt/... execution started

EEvExit 

function/task/interrupt/... execution ended

Member Function Documentation

◆ getHandle()

DWORD isys::CProfilerTimeEvent::getHandle ( )
inline
Deprecated:
since 9.12.295 (dec 2016). Use getAreaId() Returns ID of the area, for which event was recorded.

◆ getSignedValue()

int64_t isys::CProfilerTimeEvent::getSignedValue ( )
inline
Deprecated:
use getValue().

Returns value of integer variable or digital AUX port, 0 for functions.

◆ getValue()

int64_t isys::CProfilerTimeEvent::getValue ( )
inline

Returns value of integer variable or digital AUX port.

Always check value type of area, to interpret the number correctly, for example:

  area = profiler_data.getArea(event.getHandle())
  valueType = area.getValueType()[0]
  if valueType == 'I':    # unsigned integer type
      print(timelineEvents[2].getValue() & 0xffffFFFFffffFFFF)
  elif valueType == 'S':  # signed integer type
      print(timelineEvents[2].getValue())
  elif valueType == 'F':  # floating point (double) type
      print(timelineEvents[2].getFloatValue())