ICorProfilerFunctionControl Interface
Provides methods that allow a code profiler to communicate with the common language runtime (CLR) to control how the JIT compiler should generate code when recompiling a specific method.
Methods
Method | Description |
---|---|
SetCodegenFlags Method | Sets one or more flags from the COR_PRF_CODEGEN_FLAGS enumeration to control code generation for a just-in-time (JIT) recompiled function. |
SetILFunctionBody Method | Replaces the Common Intermediate Language (CIL) body of the method. |
SetILInstrumentedCodeMap Method | Sets a code map for the specified function by using the specified Common Intermediate Language (CIL) map entries. |
Remarks
The ICorProfilerFunctionControl
interface provides methods for controlling code generation for a single recompiled function. The profiler obtains an instance of this interface through the ICorProfilerCallback4::GetReJITParameters callback. Each instance of ICorProfilerFunctionControl
controls all instances of one function.
Requirements
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: Available since 4.5