|
RavEngine
|
The profiling system was setup in the expectation that there would be several systems that each had its own island of profile information. PhysX, client code, and APEX would be the first examples of these. Each one of these islands is represented by a profile zone. More...
#include <PxProfileZoneManager.h>
Public Member Functions | |
| virtual void | addProfileZone (PxProfileZone &inSDK)=0 |
| Add new profile zone for the manager. | |
| virtual void | removeProfileZone (PxProfileZone &inSDK)=0 |
| Removes profile zone from the manager. | |
| virtual void | addProfileZoneHandler (PxProfileZoneHandler &inHandler)=0 |
| Add profile zone handler callback for the profile zone notifications. | |
| virtual void | removeProfileZoneHandler (PxProfileZoneHandler &inHandler)=0 |
| Removes profile zone handler callback for the profile zone notifications. | |
| virtual PxProfileZone & | createProfileZone (const char *inSDKName, PxProfileNames inNames=PxProfileNames(), uint32_t inEventBufferByteSize=0x4000)=0 |
| Create a new profile zone. This means you don't need access to a PxFoundation to create your profile zone object, and your object is automatically registered with the profile zone manager. | |
| virtual void | release ()=0 |
| Releases the profile manager instance. | |
Public Member Functions inherited from physx::profile::PxProfileEventFlusher | |
| virtual void | flushProfileEvents ()=0 |
| Flush profile events. Sends the profile event buffer to hooked clients. | |
Static Public Member Functions | |
| static PxProfileZoneManager & | createProfileZoneManager (PxAllocatorCallback *inAllocatorCallback) |
| Create the profile zone manager. | |
The profiling system was setup in the expectation that there would be several systems that each had its own island of profile information. PhysX, client code, and APEX would be the first examples of these. Each one of these islands is represented by a profile zone.
The Manager is a singleton-like object where all these different systems can be registered so that clients of the profiling system can have one point to capture all profiling events.
Flushing the manager implies that you want to loop through all the profile zones and flush each one.
|
pure virtual |
Add new profile zone for the manager.
| inSDK | Profile zone to add. |
Implemented in physx::profile::ZoneManagerImpl.
|
pure virtual |
Add profile zone handler callback for the profile zone notifications.
| inHandler | Profile zone handler to add. |
Implemented in physx::profile::ZoneManagerImpl.
|
pure virtual |
Create a new profile zone. This means you don't need access to a PxFoundation to create your profile zone object, and your object is automatically registered with the profile zone manager.
You still need to release your object when you are finished with it.
| inSDKName | Name of the SDK object. |
| inNames | Option set of event id to name mappings. |
| inEventBufferByteSize | rough maximum size of the event buffer. May exceed this size by sizeof one event. When full an immediate call to all listeners is made. |
Implemented in physx::profile::ZoneManagerImpl.
|
static |
Create the profile zone manager.
| inAllocatorCallback | Allocator callback. |
|
pure virtual |
Releases the profile manager instance.
Implemented in physx::profile::ZoneManagerImpl.
|
pure virtual |
Removes profile zone from the manager.
| inSDK | Profile zone to remove. |
Implemented in physx::profile::ZoneManagerImpl.
|
pure virtual |
Removes profile zone handler callback for the profile zone notifications.
| inHandler | Profile zone handler to remove. |
Implemented in physx::profile::ZoneManagerImpl.