> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyManager::GetProfilingCallbacksForMethodEntryExit

> Retrieves the profiling event callbacks the Party library is configured to use when entering or exiting instrumented methods.

Retrieves the profiling event callbacks the Party library is configured to use when entering or exiting instrumented methods.

## Syntax

```cpp theme={null}
PartyError GetProfilingCallbacksForMethodEntryExit(  
    PartyProfilingMethodEntranceCallback* profilingMethodEntranceCallback,  
    PartyProfilingMethodExitCallback* profilingMethodExitCallback  
)  
```

### Parameters

**`profilingMethodEntranceCallback`**   [PartyProfilingMethodEntranceCallback\*](/services/playfab/multiplayer/networking/reference/callbacks/partyprofilingmethodentrancecallback)\
*library-allocated output, may return nullptr*

A pointer to the callback made when the Party library enters an internal method which is instrumented for profiling.

**`profilingMethodExitCallback`**   [PartyProfilingMethodExitCallback\*](/services/playfab/multiplayer/networking/reference/callbacks/partyprofilingmethodexitcallback)\
*library-allocated output, may return nullptr*

A pointer to the callback made when the Party library is about to exit an internal method which is instrumented for profiling.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Remarks

This method retrieves the profiling callback functions the Party library is calling for the instrumented event types. <br /><br /> A callback equal to `nullptr` indicates that the Party library will not make any profiling callbacks for that event type.   <br /><br /> This method is only supported on the Windows and Microsoft Game Core versions of the library. Calls on other platforms will fail.

## Requirements

**Header:** Party.h

## See also

[PartyManager](/services/playfab/multiplayer/networking/reference/classes/PartyManager/partymanager)\
[PartyProfilingMethodEntranceCallback](/services/playfab/multiplayer/networking/reference/callbacks/partyprofilingmethodentrancecallback)\
[PartyProfilingMethodExitCallback](/services/playfab/multiplayer/networking/reference/callbacks/partyprofilingmethodexitcallback)\
[PartyManager::SetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_setprofilingcallbacksformethodentryexit)


## Related topics

- [PartyManager::SetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_setprofilingcallbacksformethodentryexit.md)
- [PartyProfilingMethodExitCallback](/services/playfab/multiplayer/networking/reference/callbacks/partyprofilingmethodexitcallback.md)
- [PartyProfilingMethodEntranceCallback](/services/playfab/multiplayer/networking/reference/callbacks/partyprofilingmethodentrancecallback.md)
- [PartyXblManager::GetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_getprofilingcallbacksformethodentryexit.md)
- [PartyXblManager::SetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_setprofilingcallbacksformethodentryexit.md)
