ICorProfilerInfo9::GetNativeCodeStartAddresses 方法

给定 functionId 和 rejitId,枚举当前存在的此代码的所有抖动版本的本机代码起始地址。

语法

HRESULT GetNativeCodeStartAddresses( [in]  FunctionID functionID,
                                     [in]  ReJITID reJitId,
                                     [in]  ULONG32 cCodeStartAddresses,
                                     [out] ULONG32 *pcCodeStartAddresses,
                                     [out] UINT_PTR codeStartAddresses[]);

参数

functionId
[in]应返回其本机代码起始地址的函数的 ID。

reJitId
[in]JIT 重新编译函数的标识。

cCodeStartAddresses
[in]数组的最大大小 codeStartAddresses

pcCodeStartAddresses
[out]可用地址数。

codeStartAddresses
[out]一个数组,每个数组 UINT_PTR是指定函数的本机正文的起始地址。

注解

启用分层编译后,函数可能具有多个本机代码正文。

要求

平台: 请参阅 .NET 支持的作系统

页眉: CorProf.idl、CorProf.h

库:CorGuids.lib

.NET 版本: 自 .NET Core 2.1 起可用

另请参阅