Redaguoti

Bendrinti naudojant


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).

Syntax

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 .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: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0

See also