> ## 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.

# PartyXblManager::GetProfilingCallbacksForMethodEntryExit

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

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

## Syntax

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

### Parameters

**`profilingMethodEntranceCallback`**   PartyProfilingMethodEntranceCallback\*\
*library-allocated output, may return nullptr*

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

**`profilingMethodExitCallback`**   PartyProfilingMethodExitCallback\*\
*library-allocated output, may return nullptr*

A pointer to the callback made when the Party XBOX Live 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/xblreference/classes/PartyXblManager/methods/partyxblmanager_geterrormessage).

## Remarks

This method retrieves the profiling callback functions the Party XBOX Live library is calling for the instrumented event types. <br /><br /> A callback equal to `nullptr` indicates that the Party XBOX Live library will not make any profiling callbacks for that event type.

## Requirements

**Header:** PartyXboxLive.h

## See also

[PartyXblManager](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/partyxblmanager)\
[PartyXblManager::SetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_setprofilingcallbacksformethodentryexit)


## Related topics

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