ICorProfilerInfo::SetFunctionIDMapper 方法

指定将要调用以便将 FunctionID 值映射到替代值的探查器实现的函数,这些替代值将传递给探查器的函数入口/出口挂钩。

HRESULT SetFunctionIDMapper (
    [in] FunctionIDMapper *pFunc);

参数

  • pFunc
    [in] 一个指向 FunctionIDMapper 实现的指针,将调用该实现以将 FunctionID 值映射到它们的替代值。

备注

FunctionID 值的替代将传递到探查器的函数入口/出口挂钩(FunctionEnter2FunctionLeave2FunctionTailcall2),这些挂钩由 ICorProfilerInfo2::SetEnterLeaveFunctionHooks2 方法指定。

FunctionIDMapper 只能设置一次,并且,建议您在 ICorProfilerCallback::Initialize 回调中设置它。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**CorProf.idl、CorProf.h

**库:**CorGuids.lib

**.NET Framework 版本:**4、3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0

请参见

参考

ICorProfilerInfo 接口