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 起可用

另请参阅