Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2008, 11:45:51 PM (16 years ago)
Author:
rgrieder
Message:

Updated to Bullet 2.73 (first part).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/bullet/LinearMath/btQuickprof.h

    r2192 r2430  
    1111// Ogre (www.ogre3d.org).
    1212
     13
     14
    1315#ifndef QUICK_PROF_H
    1416#define QUICK_PROF_H
     17
     18//To disable built-in profiling, please comment out next line
     19//#define BT_NO_PROFILE 1
     20#ifndef BT_NO_PROFILE
    1521
    1622#include "btScalar.h"
    1723#include "LinearMath/btAlignedAllocator.h"
    1824#include <new>
    19 //To disable built-in profiling, please comment out next line
    20 //#define BT_NO_PROFILE 1
     25
     26
    2127
    2228
     
    322328        static  void                                            Release_Iterator( CProfileIterator * iterator ) { delete ( iterator); }
    323329
     330        static void     dumpRecursive(CProfileIterator* profileIterator, int spacing);
     331
     332        static void     dumpAll();
     333
    324334private:
    325335        static  CProfileNode                    Root;
     
    345355};
    346356
    347 #if !defined(BT_NO_PROFILE)
     357
    348358#define BT_PROFILE( name )                      CProfileSample __profile( name )
    349 #else
     359
     360#else
     361
    350362#define BT_PROFILE( name )
    351 #endif
    352 
     363
     364#endif //#ifndef BT_NO_PROFILE
    353365
    354366
Note: See TracChangeset for help on using the changeset viewer.