ICorProfilerCallback4::GetReJITParameters Method

Allows the code profiler to set alternate code generation flags for a new recompiled method body.

Syntax

HRESULT GetReJITParameters(     [in] ModuleID moduleId,     [in] mdMethodDef methodId,     [in] ICorProfilerFunctionControl *pFunctionControl);  

Parameters

moduleID
[in] The module that contains the method for which the CLR needs JIT recompilation parameters.

methodId
[in] The MethodDef of the method for which the CLR needs JIT recompilation parameters.

pFunctionControl
[in] A pointer to an ICorProfilerFunctionControl interface that the profiler can use to provide JIT recompilation information for the method being recompiled.

Remarks

The CLR issues a GetReJITParameters callback so that the profiler can specify the parameters for recompiling a given method. The GetReJITParameters callback is issued only once per function; the parameters supplied by the profiler apply to all instances of that function.

Requirements

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5

See also