ProfilerHitEx (Compact 2013)

3/28/2014

This function implemented in the kernel is called by profiler interrupt service routines (ISR) to record a profiling sample.

Syntax

VOID ProfilerHitEx(
  OEMProfilerData* pData
);

Parameters

  • pData
    [in] Pointer to an OEMProfilerData structure containing hardware-specific profiling data.

Return Value

None.

Remarks

In the case of buffered and unbuffered profiler operation, ProfilerHitEx ignores all contents of pData except the return address.

In the case of CeLog profiling, ProfilerHitEx sends the contents of pData to the Celog data stream. For more information, see CeLog Event Tracking.

If the profiler ISR generates interrupts with a timer, its calls to ProfilerHitEx produce standard Monte Carlo profiling, where samples are gathered at regular time intervals.

If the profiler ISR generates interrupts on rollover events for various performance counters, its calls to ProfilerHitEx produce more general profiling, where samples are gathered at the intervals of those performance counters.

For example, if the OEM custom profiler generates interrupts after a specified number of instruction cache misses, the profiler report highlights the functions that generated the largest number of instruction cache misses, rather than the functions that consumed the largest amount of processor time.

You can use ProfilerHitEx to expose custom profiling data for a board support package (BSP).

Requirements

Header

profiler.h

Library

Nkstub.lib

See Also

Reference

Kernel Functions
OEMProfilerData
ProfilerHit
ProfileStartEx