Notifies the profiler that the just-in-time (JIT) compiler is about to insert a function in line with another function.
HRESULT JITInlining( [in] FunctionID callerId, [in] FunctionID calleeId, [out] BOOL *pfShouldInline);
[in] The ID of the function into which the
calleeId function will be inserted.
[in] The ID of the function to be inserted.
true to allow the insertion to occur; otherwise,
The profiler can set
false to prevent the
calleeId function from being inserted into the
callerId function. Also, the profiler can globally disable inline insertion by using the COR_PRF_DISABLE_INLINING value of the COR_PRF_MONITOR enumeration.
Functions inserted inline do not raise events for entering or leaving. Therefore, the profiler must set
false in order to produce an accurate callgraph. Setting
false will affect performance, because inline insertion typically increases speed and reduces the number of separate JIT compilation events for the inserted method.
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: Available since 2.0
Send feedback about: