Skip to content

Latest commit

 

History

History
62 lines (45 loc) · 2.17 KB

icorprofilercallback-jitinlining-method.md

File metadata and controls

62 lines (45 loc) · 2.17 KB
description title ms.date api_name api_location api_type f1_keywords helpviewer_keywords ms.assetid topic_type
Learn more about: ICorProfilerCallback::JITInlining Method
ICorProfilerCallback::JITInlining Method
03/30/2017
ICorProfilerCallback.JITInlining
mscorwks.dll
COM
ICorProfilerCallback::JITInlining
JITInlining method [.NET Framework profiling]
ICorProfilerCallback::JITInlining method [.NET Framework profiling]
c2f45801-dd38-4b78-b6b7-64397dc73f83
apiref

ICorProfilerCallback::JITInlining Method

Notifies the profiler that the just-in-time (JIT) compiler is about to insert a function in line with another function.

Syntax

HRESULT JITInlining(  
    [in]  FunctionID callerId,  
    [in]  FunctionID calleeId,  
    [out] BOOL      *pfShouldInline);  

Parameters

callerId
[in] The ID of the function into which the calleeId function will be inserted.

calleeId
[in] The ID of the function to be inserted.

pfShouldInline
[out] true to allow the insertion to occur; otherwise, false.

Remarks

The profiler can set pfShouldInline to 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 pfShouldInline to false in order to produce an accurate callgraph. Setting pfShouldInline to false will affect performance, because inline insertion typically increases speed and reduces the number of separate JIT compilation events for the inserted method.

Requirements

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: [!INCLUDEnet_current_v20plus]

See also