Share via


ICorProfilerInfo::SetFunctionIDMapper Method

Specifies the profiler-implemented function that will be called to map FunctionID values to alternative values, which are passed to the profiler's function entry/exit hooks.

HRESULT SetFunctionIDMapper (
    [in] FunctionIDMapper *pFunc);

Parameters

Parameter Description

pFunc

[in] A pointer to the FunctionIDMapper Function implementation that will be called to map the FunctionID values to their alternative values.

Remarks

The alternatives for the FunctionID values will be passed to the profiler's function entry/exit hooks (FunctionEnter2 Function, FunctionLeave2 Function, and FunctionTailcall2 Function) that are specified by the ICorProfilerInfo2::SetEnterLeaveFunctionHooks2 Method method.

The FunctionIDMapper can be set only once and it is recommended that you set it in the ICorProfilerCallback::Initialize Method callback.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Reference

ICorProfilerInfo Interface