ICorProfilerFunctionControl::SetILInstrumentedCodeMap Method

Sets a code map for the specified function by using the specified Common Intermediate Language (CIL) map entries.

Syntax

HRESULT SetILInstrumentedCodeMap(  
    [in]   ULONG      cILMapEntries,  
    [in, size_is(cILMapEntries)] COR_IL_MAP rgILMapEntries[]);  

Parameters

cILMapEntries
[in] The number of entries in the map.

rgILMapEntries
[in] The caller-allocated array of COR_IL_MAP entries. The interpretation of these entries is the same as for the ICorProfilerInfo::SetILInstrumentedCodeMap method.

Remarks

Setting the mapping by calling this method allows the debugger to retrieve the mapping by calling ICorDebugILCode2::GetInstrumentedILMap. It also allows the debugger to use the mapping internally when calculating IL offsets for stack traces and variable lifetimes.

Requirements

Platforms: See System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.5

See also