orx
1.14
Portable Game Engine
|
Macros | |
#define | orxPROFILER_KS32_MARKER_ID_NONE -1 |
#define | orxPROFILER_KU32_HISTORY_LENGTH 2 |
#define | orxPROFILER_POP_MARKER() |
#define | orxPROFILER_PUSH_MARKER(NAME) |
Profiler Module Allows to profile code execution
#define orxPROFILER_KS32_MARKER_ID_NONE -1 |
Defines
Definition at line 95 of file orxProfiler.h.
#define orxPROFILER_KU32_HISTORY_LENGTH 2 |
Definition at line 88 of file orxProfiler.h.
#define orxPROFILER_POP_MARKER | ( | ) |
Definition at line 86 of file orxProfiler.h.
#define orxPROFILER_PUSH_MARKER | ( | NAME | ) |
Profiler macros
Definition at line 84 of file orxProfiler.h.
orxDLLAPI orxBOOL orxFASTCALL orxProfiler_AreMarkerOperationsEnabled | ( | ) |
Are marker push/pop operations enabled?
Enables marker push/pop operations
[in] | _bEnable | Enable |
orxDLLAPI orxS32 orxFASTCALL orxProfiler_GetIDFromName | ( | const orxSTRING | _zName | ) |
Gets a marker ID given a name
[in] | _zName | Name of the marker |
orxDLLAPI orxS32 orxFASTCALL orxProfiler_GetMarkerCount | ( | ) |
Gets the number of registered markers used on the queried thread
orxDLLAPI orxDOUBLE orxFASTCALL orxProfiler_GetMarkerMaxTime | ( | orxS32 | _s32MarkerID | ) |
Gets the marker's maximum cumulated time
[in] | _s32MarkerID | Concerned marker ID |
orxDLLAPI const orxSTRING orxFASTCALL orxProfiler_GetMarkerName | ( | orxS32 | _s32MarkerID | ) |
Gets the marker's name
[in] | _s32MarkerID | Concerned marker ID |
orxDLLAPI orxU32 orxFASTCALL orxProfiler_GetMarkerPushCount | ( | orxS32 | _s32MarkerID | ) |
Gets the marker's push count
[in] | _s32MarkerID | Concerned marker ID |
orxDLLAPI orxDOUBLE orxFASTCALL orxProfiler_GetMarkerTime | ( | orxS32 | _s32MarkerID | ) |
Gets the marker's cumulated time
[in] | _s32MarkerID | Concerned marker ID |
orxDLLAPI orxDOUBLE orxFASTCALL orxProfiler_GetMaxResetTime | ( | ) |
Gets the maximum reset time
orxDLLAPI orxS32 orxFASTCALL orxProfiler_GetNextMarkerID | ( | orxS32 | _s32MarkerID | ) |
Gets the next registered marker ID
[in] | _s32MarkerID | ID of the current marker, orxPROFILER_KS32_MARKER_ID_NONE to get the first one |
orxDLLAPI orxS32 orxFASTCALL orxProfiler_GetNextSortedMarkerID | ( | orxS32 | _s32MarkerID | ) |
Gets the ID of the next marker, sorted by their push time
[in] | _s32MarkerID | ID of the current pushed marker, orxPROFILER_KS32_MARKER_ID_NONE to get the first one |
orxDLLAPI orxDOUBLE orxFASTCALL orxProfiler_GetResetTime | ( | ) |
Gets the time elapsed since last reset
orxDLLAPI orxU32 orxFASTCALL orxProfiler_GetUniqueMarkerDepth | ( | orxS32 | _s32MarkerID | ) |
Gets the uniquely pushed marker's depth, 1 being the depth of the top level
[in] | _s32MarkerID | Concerned marker ID |
orxDLLAPI orxDOUBLE orxFASTCALL orxProfiler_GetUniqueMarkerStartTime | ( | orxS32 | _s32MarkerID | ) |
Gets the uniquely pushed marker's start time
[in] | _s32MarkerID | Concerned marker ID |
Inits the Profiler module
orxDLLAPI orxBOOL orxFASTCALL orxProfiler_IsMarkerIDValid | ( | orxS32 | _s32MarkerID | ) |
Is the given marker valid? (Useful when storing markers in static variables and still allow normal hot restart)
[in] | _s32MarkerID | ID of the marker to test |
orxDLLAPI orxBOOL orxFASTCALL orxProfiler_IsPaused | ( | ) |
Is profiler paused?
orxDLLAPI orxBOOL orxFASTCALL orxProfiler_IsUniqueMarker | ( | orxS32 | _s32MarkerID | ) |
Has the marker been pushed by a unique parent?
[in] | _s32MarkerID | Concerned marker ID |
Pauses/unpauses the profiler
[in] | _bPause | Pause |
Pops a marker (from the stack) and updates its cumulated time (using the last marker push time)
Pushes a marker (on a stack) and starts a timer for it
[in] | _s32MarkerID | ID of the marker to push |
Resets all markers (usually called at the end of the frame)
Resets all maxima (usually called at a regular interval)
orxDLLAPI orxSTATUS orxFASTCALL orxProfiler_SelectQueryFrame | ( | orxU32 | _u32QueryFrame, |
orxU32 | _u32ThreadID | ||
) |
Selects the query frame for all GetMarker* functions below, in number of frame elapsed from the last one
[in] | _u32QueryFrame | Query frame, in number of frame elapsed since the last one (ie. 0 -> last frame, 1 -> frame before last, ...) |
[in] | _u32ThreadID | Concerned thread ID, if no data is found for this thread, orxSTATUS_FAILURE is returned |