- Timestamp:
- Dec 13, 2008, 11:45:51 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/bullet/LinearMath/btQuickprof.h
r2192 r2430 11 11 // Ogre (www.ogre3d.org). 12 12 13 14 13 15 #ifndef QUICK_PROF_H 14 16 #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 15 21 16 22 #include "btScalar.h" 17 23 #include "LinearMath/btAlignedAllocator.h" 18 24 #include <new> 19 //To disable built-in profiling, please comment out next line 20 //#define BT_NO_PROFILE 1 25 26 21 27 22 28 … … 322 328 static void Release_Iterator( CProfileIterator * iterator ) { delete ( iterator); } 323 329 330 static void dumpRecursive(CProfileIterator* profileIterator, int spacing); 331 332 static void dumpAll(); 333 324 334 private: 325 335 static CProfileNode Root; … … 345 355 }; 346 356 347 #if !defined(BT_NO_PROFILE) 357 348 358 #define BT_PROFILE( name ) CProfileSample __profile( name ) 349 #else 359 360 #else 361 350 362 #define BT_PROFILE( name ) 351 #endif 352 363 364 #endif //#ifndef BT_NO_PROFILE 353 365 354 366
Note: See TracChangeset
for help on using the changeset viewer.