ICorProfilerInfo3::GetFunctionEnter3Info 方法

提供函数的堆栈帧和参数信息,该函数正通过 FunctionEnter3WithInfo 函数报告给探查器。 此方法只能在 FunctionEnter3WithInfo 回调期间调用。

HRESULT GetFunctionEnter3Info(
            [in]  FunctionID functionId, 
            [in]  COR_PRF_ELT_INFO eltInfo,
            [out] COR_PRF_FRAME_INFO *pFrameInfo,
            [in, out] ULONG *pcbArgumentInfo,
            [out, size_is(*pcbArgumentInfo)]
                  COR_PRF_FUNCTION_ARGUMENT_INFO *pArgumentInfo);

参数

  • functionId
    [in] 所输入的函数的 FunctionID。

  • eltInfo
    [in] 一个不透明的句柄,表示有关给定的堆栈帧的信息。 探查器应提供 FunctionEnter3WithInfo 函数已向其提供的同一 eltInfo。

  • pFrameInfo
    [out] 一个不透明的句柄,表示有关给定的堆栈帧的一般信息。 此句柄仅在 FunctionEnter3WithInfo 回调过程中有效,探查器在此回调过程中调用了 GetFunctionEnter3Info 方法。

  • pcbArgumentInfo
    [in, out] 一个指向传递到已进入的函数的参数数目的指针。

  • pArgumentInfo
    [out] 一个指向 COR_PRF_FUNCTION_ARGUMENT_INFO 结构的指针,该结构按从左到右的顺序描述函数的参数在内存中的位置。

备注

探查器需要为所检查的函数的 COR_PRF_FUNCTION_ARGUMENT_INFO 结构分配足够的空间,并使用 pcbArgumentInfo 参数指示大小。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**CorProf.idl、CorProf.h

**库:**CorGuids.lib

**.NET Framework 版本:**4

请参见

参考

FunctionEnter3WithInfo

FunctionLeave3WithInfo

FunctionTailcall3WithInfo

ICorProfilerInfo3 接口

概念

分析和运行时通知 ID

其他资源

分析接口

分析(非托管 API 参考)