ICorProfilerInfo3::SetEnterLeaveFunctionHooks3, méthode
Spécifie les fonctions implémentées par le profileur à appeler sur les fonctions FunctionEnter3, FunctionLeave3 et FunctionTailcall3.
Syntaxe
HRESULT SetEnterLeaveFunctionHooks3(
[in] FunctionEnter3 *pFuncEnter3,
[in] FunctionLeave3 *pFuncLeave3,
[in] FunctionTailcall3 *pFuncTailcall3);
Paramètres
pFuncEnter3
[in] Pointeur vers l’implémentation à utiliser comme rappel FunctionEnter3
.
pFuncLeave3
[in] Pointeur vers l’implémentation à utiliser comme rappel FunctionLeave3
.
pFuncTailcall3
[in] Pointeur vers l’implémentation à utiliser comme rappel FunctionTailcall3
.
Notes
Les crochets FunctionEnter3, FunctionLeave3 et FunctionTailcall3 ne fournissent pas d’inspection d’argument et de frame de pile. Pour accéder à ces informations, les indicateurs COR_PRF_ENABLE_FUNCTION_ARGS
, COR_PRF_ENABLE_FUNCTION_RETVAL
et/ou COR_PRF_ENABLE_FRAME_INFO
doivent être définis. Le profileur peut utiliser la méthode ICorProfilerInfo::SetEventMask pour définir les indicateurs d’événement, puis utiliser la méthode ICorProfilerInfo3::SetEnterLeaveFunctionHooks3WithInfo pour inscrire votre implémentation de cette fonction.
Un seul ensemble de rappels peut être actif à la fois et la version la plus récente est prioritaire. Par conséquent, si un profileur appelle à la fois la méthode SetEnterLeaveFunctionHooks2 et la méthode SetEnterLeaveFunctionHooks3
, SetEnterLeaveFunctionHooks3
est utilisée.
La méthode SetEnterLeaveFunctionHooks3
peut être appelée uniquement à partir du rappel ICorProfilerCallback::Initialize du profileur.
Spécifications
Plateformes : Consultez Configuration requise.
En-tête : CorProf.idl, CorProf.h
Bibliothèque : CorGuids.lib
Versions de .NET Framework : Disponible depuis la version 4