Open 3D Engine PhysX Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
PhysX::PxAzProfilerCallback Class Reference

Implementation of the PhysX profiler callback interface. More...

#include <PhysXSdkCallbacks.h>

Inherits physx::PxProfilerCallback.

Public Member Functions

void * zoneStart (const char *eventName, bool detached, uint64_t contextId) override
 
void zoneEnd (void *profilerData, const char *eventName, bool detached, uint64_t contextId) override
 

Detailed Description

Implementation of the PhysX profiler callback interface.

Member Function Documentation

◆ zoneEnd()

void PhysX::PxAzProfilerCallback::zoneEnd ( void *  profilerData,
const char *  eventName,
bool  detached,
uint64_t  contextId 
)
override

Mark the end of a nested profile block.

Parameters
profilerDataThe data returned by the corresponding zoneStart call (or NULL if not available)
eventNameThe name of the zone ending, must match the corresponding name passed with 'zoneStart'. Must be a persistent const char *.
detachedTrue for cross thread events. Should match the value passed to zoneStart.
contextIdThe context of this zone. Should match the value passed to zoneStart. Note: eventName plus contextId can be used to uniquely match up start and end of a zone.

◆ zoneStart()

void * PhysX::PxAzProfilerCallback::zoneStart ( const char *  eventName,
bool  detached,
uint64_t  contextId 
)
override

Mark the beginning of a nested profile block.

Parameters
eventNameEvent name. Must be a persistent const char *.
detachedTrue for cross thread events.
contextIdThe context id of this zone. Zones with the same id belong to the same group. 0 is used for no specific group.
Returns
Returns implementation-specific profiler data for this event.

The documentation for this class was generated from the following file: