|
|
| ZoneImpl (PxAllocatorCallback *inAllocator, const char *inName, uint32_t bufferSize=0x10000, const TNameProvider &inProvider=TNameProvider()) |
| |
|
void | doAddName (const char *inName, uint16_t inEventId, bool inCompileTimeEnabled) |
| |
| virtual void | flushEventIdNameMap () |
| | Specifies that it is a safe point to flush read-write name map into read-only map. Make sure getEventIdForName is not called from a different thread.
|
| |
| virtual uint16_t | getEventIdForName (const char *inName) |
| | Get or create a new event id for a given name. If you pass in a previously defined event name (including one returned) from the name provider) you will just get the same event id back.
|
| |
| virtual uint16_t | getEventIdsForNames (const char **inNames, uint32_t inLen) |
| | Reserve a contiguous set of profile event ids for a set of names.
|
| |
| virtual void | setProfileZoneManager (PxProfileZoneManager *inMgr) |
| | Set profile zone manager for the zone.
|
| |
| virtual PxProfileZoneManager * | getProfileZoneManager () |
| | Get profile zone manager for the zone.
|
| |
| const char * | getName () |
| | Get profile zone name.
|
| |
|
PxProfileEventBufferClient * | getEventBufferClient () |
| |
| void | addClient (PxProfileZoneClient &inClient) |
| | Adds new client.
|
| |
| void | removeClient (PxProfileZoneClient &inClient) |
| | Removes a client.
|
| |
| virtual bool | hasClients () const |
| | Check if manager has clients.
|
| |
| virtual PxProfileNames | getProfileNames () const |
| | Returns profile event names.
|
| |
| virtual void | release () |
| | Release the profile zone.
|
| |
| virtual void | handleBufferFlush (const uint8_t *inData, uint32_t inLength) |
| |
| virtual void | handleClientRemoved () |
| | Happens if something removes all the clients from the manager.
|
| |
| virtual void | startEvent (uint16_t inId, uint64_t contextId) |
| | Send a start profile event, optionally with a context. Events are sorted by thread and context in the client side.
|
| |
| virtual void | stopEvent (uint16_t inId, uint64_t contextId) |
| | Send a stop profile event, optionally with a context. Events are sorted by thread and context in the client side.
|
| |
| virtual void | startEvent (uint16_t inId, uint64_t contextId, uint32_t threadId) |
| | Send a start profile event, optionally with a context. Events are sorted by thread and context in the client side.
|
| |
| virtual void | stopEvent (uint16_t inId, uint64_t contextId, uint32_t threadId) |
| | Send a stop profile event, optionally with a context. Events are sorted by thread and context in the client side.
|
| |
| virtual void | atEvent (uint16_t inId, uint64_t contextId, uint32_t threadId, uint64_t start, uint64_t stop) |
| |
| virtual void | eventValue (uint16_t inId, uint64_t contextId, int64_t inValue) |
| |
| virtual void | flushProfileEvents () |
| | Flush profile events. Sends the profile event buffer to hooked clients.
|
| |
template<typename TNameProvider >
| virtual uint16_t physx::profile::ZoneImpl< TNameProvider >::getEventIdsForNames |
( |
const char ** |
inNames, |
|
|
uint32_t |
inLen |
|
) |
| |
|
inlinevirtual |
Reserve a contiguous set of profile event ids for a set of names.
This function does not do any meaningful error checking other than to ensure that if it does generate new ids they are contiguous. If the first name is already registered, that is the ID that will be returned regardless of what other names are registered. Thus either use this function alone (without the above function) or don't use it.
If you register "one","two","three" and the function returns an id of 4, then "one" is mapped to 4, "two" is mapped to 5, and "three" is mapped to 6.
- Parameters
-
| inNames | set of names to register. |
| inLen | Length of the name list. |
- Returns
- The first id associated with the first name. The rest of the names will be associated with monotonically incrementing uint16_t values from the first id.
Implements physx::profile::PxProfileZone.