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);
[in] The ID of the function for which the search was performed.
[in] A value of the COR_PRF_JIT_CACHE enumeration that indicates the result of the search.
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.
Platforms: See .NET Framework System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0