27#ifndef PX_PROFILE_SCOPED_EVENT_H
28#define PX_PROFILE_SCOPED_EVENT_H
30#include "PxProfileEventId.h"
31#include "PxProfileCompileTimeEventFilter.h"
33namespace physx {
namespace profile {
42 template<
bool TEnabled,
typename TBufferType>
43 inline void startEvent( TBufferType* inBuffer,
const PxProfileEventId& inId, uint64_t inContext )
45 if ( TEnabled && inBuffer ) inBuffer->startEvent( inId, inContext );
55 template<
bool TEnabled,
typename TBufferType>
56 inline void stopEvent( TBufferType* inBuffer,
const PxProfileEventId& inId, uint64_t inContext )
58 if ( TEnabled && inBuffer ) inBuffer->stopEvent( inId, inContext );
69 template<
typename TBufferType>
70 inline void startEvent(
bool inEnabled, TBufferType* inBuffer,
const PxProfileEventId& inId, uint64_t inContext )
72 if ( inEnabled && inBuffer ) inBuffer->startEvent( inId, inContext );
83 template<
typename TBufferType>
84 inline void stopEvent(
bool inEnabled, TBufferType* inBuffer,
const PxProfileEventId& inId, uint64_t inContext )
86 if ( inEnabled && inBuffer ) inBuffer->stopEvent( inId, inContext );
98 template<
typename TBufferType>
99 inline void eventValue(
bool inEnabled, TBufferType* inBuffer,
const PxProfileEventId& inId, uint64_t inContext, int64_t inValue )
101 if ( inEnabled && inBuffer ) inBuffer->eventValue( inId, inContext, inValue );
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39