ICorProfilerInfo3::EnumJITedFunctions 方法

返回先前 JIT 编译的所有函数的枚举器。

语法

HRESULT EnumJITedFunctions([out] ICorProfilerFunctionEnum** ppEnum);  

参数

ppEnum
[out] 指向 ICorProfilerFunctionEnum 枚举器的指针。

注解

此方法可能与 JITCompilation 回调(如 ICorProfilerCallback::JITCompilationStarted 方法)重叠。 此方法返回的枚举器不包括从使用 Ngen.exe 生成的原生映像加载的函数。

备注

返回的枚举仅包含 COR_PRF_FUNCTION::reJitId 字段值的“0”。 如果需要有效的 COR_PRF_FUNCTION::reJitId 值,请使用 ICorProfilerInfo4::EnumJITedFunctions2 方法。

要求

平台:请参阅系统要求

头文件: CorProf.idl、CorProf.h

库:CorGuids.lib

.NET Framework 版本:自 4 起可用

另请参阅