RavEngine
Loading...
Searching...
No Matches
physx::profile::PxProfileMemoryEventBufferImpl Class Reference
Inheritance diagram for physx::profile::PxProfileMemoryEventBufferImpl:
[legend]
Collaboration diagram for physx::profile::PxProfileMemoryEventBufferImpl:
[legend]

Public Member Functions

 PxProfileMemoryEventBufferImpl (PxAllocatorCallback &alloc, uint32_t inBufferFullAmount)
 
virtual void onAllocation (size_t size, const char *typeName, const char *filename, int line, void *allocatedMemory)
 callback when memory is allocated.
 
virtual void onDeallocation (void *allocatedMemory)
 callback when memory is deallocated.
 
virtual void addClient (PxProfileEventBufferClient &inClient)
 Adds new client.
 
virtual void removeClient (PxProfileEventBufferClient &inClient)
 Removes a client.
 
virtual bool hasClients () const
 Check if manager has clients.
 
virtual void flushProfileEvents ()
 Flush profile events. Sends the profile event buffer to hooked clients.
 
virtual void release ()
 Release the instance.
 
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Additional Inherited Members

- Static Public Member Functions inherited from physx::profile::PxProfileMemoryEventBuffer
static PxProfileMemoryEventBuffer & createMemoryEventBuffer (PxAllocatorCallback &inAllocator, uint32_t inBufferSize=0x1000)
 Create a non-mutex-protected event buffer.

 

Member Function Documentation

◆ addClient()

virtual void physx::profile::PxProfileMemoryEventBufferImpl::addClient ( PxProfileEventBufferClient &  inClient)
inlinevirtual

Adds new client.

Parameters
inClientClient to add.

Implements physx::profile::PxProfileEventBufferClientManager.

◆ flushProfileEvents()

virtual void physx::profile::PxProfileMemoryEventBufferImpl::flushProfileEvents ( )
inlinevirtual

Flush profile events. Sends the profile event buffer to hooked clients.

Implements physx::profile::PxProfileEventFlusher.

◆ hasClients()

virtual bool physx::profile::PxProfileMemoryEventBufferImpl::hasClients ( ) const
inlinevirtual

Check if manager has clients.

Returns
True if manager has added clients.

Implements physx::profile::PxProfileEventBufferClientManager.

◆ onAllocation()

virtual void physx::profile::PxProfileMemoryEventBufferImpl::onAllocation ( size_t  size,
const char *  typeName,
const char *  filename,
int  line,
void *  allocatedMemory 
)
inlinevirtual

callback when memory is allocated.

Parameters
sizeSize of the allocation in bytes.
typeNameType this data is being allocated for.
filenameFile the allocation came from.
linethe allocation came from.
allocatedMemorymemory that will be returned from the allocation.

Implements physx::PxAllocationListener.

◆ onDeallocation()

virtual void physx::profile::PxProfileMemoryEventBufferImpl::onDeallocation ( void *  allocatedMemory)
inlinevirtual

callback when memory is deallocated.

Parameters
allocatedMemorymemory just before allocation.

Implements physx::PxAllocationListener.

◆ release()

virtual void physx::profile::PxProfileMemoryEventBufferImpl::release ( )
inlinevirtual

Release the instance.

Implements physx::profile::PxProfileMemoryEventBuffer.

◆ removeClient()

virtual void physx::profile::PxProfileMemoryEventBufferImpl::removeClient ( PxProfileEventBufferClient &  inClient)
inlinevirtual

Removes a client.

Parameters
inClientClient to remove.

Implements physx::profile::PxProfileEventBufferClientManager.


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