ICorProfilerInfo::SetEnterLeaveFunctionHooks 메서드

관리되는 함수의 "enter", "leave" 및 "tailcall" 후크에서 호출할 프로파일러 구현 함수를 지정합니다.

구문

HRESULT SetEnterLeaveFunctionHooks(  
    [in] FunctionEnter    *pFuncEnter,  
    [in] FunctionLeave    *pFuncLeave,  
    [in] FunctionTailcall *pFuncTailcall);  

매개 변수

pFuncEnter
[in] FunctionEnter 콜백으로 사용할 구현에 대한 포인터입니다.

pFuncLeave
[in] FunctionLeave 콜백으로 사용할 구현에 대한 포인터입니다.

pFuncTailcall
[in] FunctionTailcall 콜백으로 사용할 구현에 대한 포인터입니다.

설명

.NET Framework 버전 1.0에서 각 함수 포인터는 해당 콜백을 사용하지 않도록 설정하기 위해 null일 수 있습니다.

한 번에 하나의 콜백 집합만 활성화할 수 있습니다. 따라서 프로파일러가 SetEnterLeaveFunctionHooksICorProfilerInfo2::SetEnterLeaveFunctionHooks2를 모두 호출하면 SetEnterLeaveFunctionHooks2가 우선적으로 적용됩니다.

SetEnterLeaveFunctionHooks 메서드는 프로파일러의 ICorProfilerCallback::Initialize 콜백에서만 호출할 수 있습니다.

요구 사항

플랫폼:시스템 요구 사항을 참조하세요.

헤더: CorProf.idl, CorProf.h

라이브러리: CorGuids.lib

.NET Framework 버전: 1.1부터 사용 가능

참고 항목