ICorProfilerInfo9::GetNativeCodeStartAddresses 方法
指定 functionId 和 rejitId,針對此程式碼目前存在的所有 JIT 編譯版本,列舉機器碼起始位址。
語法
HRESULT GetNativeCodeStartAddresses( [in] FunctionID functionID,
[in] ReJITID reJitId,
[in] ULONG32 cCodeStartAddresses,
[out] ULONG32 *pcCodeStartAddresses,
[out] UINT_PTR codeStartAddresses[]);
參數
functionId
[in] 應該傳回其機器碼起始位址的函式識別碼。
reJitId
[in] 經過 JIT 重新編譯的函式識別。
cCodeStartAddresses
[in] codeStartAddresses
陣列的大小上限。
pcCodeStartAddresses
[out] 可用的位址數目。
codeStartAddresses
[out] UINT_PTR
陣列,其中每一個都是指定函式之原生主體的起始位址。
備註
啟用階層式編譯時,函式可能會有多個機器碼主體。
需求
平台:請參閱 .NET 支援的作業系統。
標頭: CorProf.idl、CorProf.h
程式庫:CorGuids.lib
.NET 版本: 自 .NET Core 2.1 起提供