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

# PartyProfilingMethodExitCallback

> A callback invoked every time the Party library is about to exit an instrumented method.

A callback invoked every time the Party library is about to exit an instrumented method.

## Syntax

```cpp theme={null}
typedef
void (*PartyProfilingMethodExitCallback)(  
    const PartyProfilingMethodExitEventData* eventData  
)  
```

### Parameters

**`eventData`**   [PartyProfilingMethodExitEventData\*](/services/playfab/multiplayer/networking/reference/structs/partyprofilingmethodexiteventdata)

A constant pointer to a structure containing additional information which may be of use when profiling this event. The data referenced by this pointer is guaranteed to be valid only for the duration the callback.

### Return value

Type: void

The callback does not return a value.

## Remarks

This callback is optionally installed using the [PartyManager::SetProfilingCallbacksForMethodEntryExit()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_setprofilingcallbacksformethodentryexit) method, which also details the types of profiled events available to a caller. <br /><br /> In order to minimize the impact of profiling on title performance, callbacks should be kept as lightweight as possible as they are expected to fire hundreds or thousands of times per second.

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)\
[PartyProfilingMethodExitEventData](/services/playfab/multiplayer/networking/reference/structs/partyprofilingmethodexiteventdata)\
[PartyManager::SetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_setprofilingcallbacksformethodentryexit)\
[PartyManager::GetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_getprofilingcallbacksformethodentryexit)


## Related topics

- [PartyManager::SetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_setprofilingcallbacksformethodentryexit.md)
- [PartyManager::GetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_getprofilingcallbacksformethodentryexit.md)
- [PartyProfilingMethodExitEventData](/services/playfab/multiplayer/networking/reference/structs/partyprofilingmethodexiteventdata.md)
- [PartyXblManager::SetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_setprofilingcallbacksformethodentryexit.md)
- [PartyXblManager::GetProfilingCallbacksForMethodEntryExit](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_getprofilingcallbacksformethodentryexit.md)
