winIDEA SDK
|
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. | |
This enum defines profiler time-line events.
|
inline |
|
inline |
Returns value of integer variable or digital AUX port, 0 for functions.
|
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())