This class contains information of one profiler time-line event. More...
#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. | |
| int | getEventSource () |
| Returns source of event or -1 if it does not exist for an event. | |
| EEventType | getEventType () |
| Returns event type. | |
| double | getFloatValue () |
| Returns float value of float variables and analog AUX ports, 0 for functions. | |
| DWORD | getHandle () |
| int64_t | getSignedValue () |
| int64_t | getTime () |
| Returns time of event. | |
| std::string | getUnit () |
| Returns unit of analog AUX port, empty string for all other areas. | |
| int64_t | getValue () |
| Returns value of integer variable or digital AUX port. | |
| std::string | toString () |
| Returns string representation of this object. | |
This class contains information of one profiler time-line event.
Python example: profiler_data.py
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())