com.bulletphysics
Class BulletStats

java.lang.Object
  extended by com.bulletphysics.BulletStats

public class BulletStats
extends Object

Bullet statistics and profile support.


Field Summary
static int gAddedPairs
           
static int gFindPairs
           
static int gNumAlignedAllocs
           
static int gNumAlignedFree
           
static int gNumClampedCcdMotions
           
static int gNumDeepPenetrationChecks
           
static int gNumGjkChecks
           
static int gNumSplitImpulseRecoveries
           
static float gOldPickingDist
           
static Vector3f gOldPickingPos
           
static int gOverlappingPairs
           
static int gPickingConstraintId
           
static Clock gProfileClock
           
static int gRemovePairs
           
static int gTotalBytesAlignedAllocs
           
static int gTotalContactPoints
           
static long stepSimulationTime
           
static long updateTime
           
 
Constructor Summary
BulletStats()
           
 
Method Summary
static boolean isProfileEnabled()
           
static void popProfile()
          Pops profile node.
static float profileGetTickRate()
           
static long profileGetTicks()
           
static void pushProfile(String name)
          Pushes profile node.
static void setProfileEnabled(boolean b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gTotalContactPoints

public static int gTotalContactPoints

gNumDeepPenetrationChecks

public static int gNumDeepPenetrationChecks

gNumGjkChecks

public static int gNumGjkChecks

gNumSplitImpulseRecoveries

public static int gNumSplitImpulseRecoveries

gNumAlignedAllocs

public static int gNumAlignedAllocs

gNumAlignedFree

public static int gNumAlignedFree

gTotalBytesAlignedAllocs

public static int gTotalBytesAlignedAllocs

gPickingConstraintId

public static int gPickingConstraintId

gOldPickingPos

public static final Vector3f gOldPickingPos

gOldPickingDist

public static float gOldPickingDist

gOverlappingPairs

public static int gOverlappingPairs

gRemovePairs

public static int gRemovePairs

gAddedPairs

public static int gAddedPairs

gFindPairs

public static int gFindPairs

gProfileClock

public static final Clock gProfileClock

gNumClampedCcdMotions

public static int gNumClampedCcdMotions

stepSimulationTime

public static long stepSimulationTime

updateTime

public static long updateTime
Constructor Detail

BulletStats

public BulletStats()
Method Detail

isProfileEnabled

public static boolean isProfileEnabled()

setProfileEnabled

public static void setProfileEnabled(boolean b)

profileGetTicks

public static long profileGetTicks()

profileGetTickRate

public static float profileGetTickRate()

pushProfile

public static void pushProfile(String name)
Pushes profile node. Use try/finally block to call popProfile() method.

Parameters:
name - must be interned String (not needed for String literals)

popProfile

public static void popProfile()
Pops profile node.