Sdílet prostřednictvím


ICorProfilerInfo3::GetFunctionEnter3Info Method

Provides the stack frame and argument information of the function that is being reported to the profiler by the FunctionEnter3WithInfo function. This method can be called only during the FunctionEnter3WithInfo callback.

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);

Parameters

  • functionId
    [in] The FunctionID of the function that is being entered.

  • eltInfo
    [in] An opaque handle that represents information about a given stack frame. The profiler should provide the same eltInfo that it was given by the FunctionEnter3WithInfo function.

  • pFrameInfo
    [out] An opaque handle that represents generics information about a given stack frame. This handle is valid only during the FunctionEnter3WithInfo callback in which the profiler called the GetFunctionEnter3Info method.

  • pcbArgumentInfo
    [in, out] A pointer to the number of arguments that are passed to the function that was entered.

  • pArgumentInfo
    [out] A pointer to a COR_PRF_FUNCTION_ARGUMENT_INFO structure that describes the locations of the function's arguments in memory, in left-to-right order.

Remarks

The profiler must allocate sufficient space for the COR_PRF_FUNCTION_ARGUMENT_INFO structure of the function that is being inspected, and must indicate the size in the pcbArgumentInfo parameter.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorProf.idl, CorProf.h

Library: CorGuids.lib

.NET Framework Versions: 4

See Also

Reference

FunctionEnter3WithInfo

FunctionLeave3WithInfo

FunctionTailcall3WithInfo

ICorProfilerInfo3 Interface

Concepts

Profiling and Runtime Notification IDs

Other Resources

Profiling Interfaces

Profiling (Unmanaged API Reference)