Function RTPStart
RTPStart starts profiling:
void RTPStart(UINT Flags, int IRQ, void (* StopHook)(void));
ParametersFlagsZero or a combination of these flags:
Flag |
Comment |
RTP_FUNCTION_CALLS |
Increment the counter of the source line calling the interrupted code rather than the counter of the interrupted code itself. When this option is used, only source lines which call a function will appear in the results. Each count represents a hit in the called function. |
RTP_NO_OTHER_THREADS |
The profiler should not increment source line counters for interrupts occurring in threads other than the thread which calls RTPStart. Instead, such events will be counted by the task counters. |
RTP_CPU386 |
This option must be specified when the program is using the CPU386 driver instead of the default driver CPU386F. |
IRQThe IRQ on which the profiler should install its interrupt handler. Note that this function does not program any hardware to generate interrupts.
StopHookA callback function RTPStop should call. This callback should typically program the hardware to no longer generate interrupts. This parameter may be NULL.
Most applications should not call this function directly but rather use RTPStartRTC, RTPStartTimer, or RTPStartCOM.
Function RTPExcludeLines
Function RTPStartRTC
|