Share via


ICorProfilerCallback::JITCachedFunctionSearchFinished Method

Notifies the profiler that a search has finished for a function that was compiled previously using the Native Image Generator (NGen.exe).

HRESULT JITCachedFunctionSearchFinished(
    [in] FunctionID        functionId,
    [in] COR_PRF_JIT_CACHE result);

Parameters

  • functionId
    [in] The ID of the function for which the search was performed.

  • result
    [in] A value of the COR_PRF_JIT_CACHE enumeration that indicates the result of the search.

Remarks

In the .NET Framework version 2.0, the ICorProfilerCallback::JITCachedFunctionSearchStarted and JITCachedFunctionSearchFinished callbacks will not be made for all functions in regular NGen images. Only NGen images optimized for a profiler will generate callbacks for all functions in the image. However, due to the additional overhead, a profiler should request profiler-optimized NGen images only if it intends to use these callbacks to force a function to be compiled just-in-time (JIT). Otherwise, the profiler should use a lazy strategy for gathering function information.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Concepts

ICorProfilerCallback Interface