ICorProfilerInfo::SetFunctionIDMapper 方法

指定將被呼叫來對應 FunctionID 值到替代值的程式碼剖析工具實作函式,這會被傳遞至分析工具函式進入/離開的攔截。

語法

HRESULT SetFunctionIDMapper (  
    [in] FunctionIDMapper *pFunc);  

參數

pFunc
[in] 將會呼叫的 FunctionIDMapper 實作指標,以將 FunctionID 值對應至其替代值。

備註

FunctionID 值的替代值會傳遞至分析工具的函式進入/結束勾點 (FunctionEnter2FunctionLeave2FunctionTailcall2),這些勾點由 ICorProfilerInfo2::SetEnterLeaveFunctionHooks2 方法指定。

FunctionIDMapper 只能設定一次,建議您在 ICorProfilerCallback::Initialize 回呼中加以設定。

規格需求

平台:請參閱系統需求

標頭: CorProf.idl、CorProf.h

程式庫:CorGuids.lib

.NET Framework版本:自 2.0 起可用

另請參閱