ICorProfilerCallback::JITCompilationFinished Method


Notifies the profiler that the just-in-time (JIT) compiler has finished compiling a function.

HRESULT JITCompilationFinished(  
    [in] FunctionID functionId,  
    [in] HRESULT    hrStatus,  
    [in] BOOL       fIsSafeToBlock);  


[in] The ID of the function that was compiled.

[in] A value indicating whether compilation was successful.

[in] A value indicating to the profiler whether blocking will affect the operation of the runtime. The value is true if blocking may cause the runtime to wait for the calling thread to return from this callback; otherwise, false.

Although a value of true will not harm the runtime, it can skew the profiling results.

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 2.0

ICorProfilerCallback Interface
JITCompilationStarted Method