Blender Git Loki
Git Commits -> Revision 82570cb
Revision 82570cb by Sergey Sharybin (master) July 15, 2013, 19:17 (GMT) |
Utility benchmarking macros This new macros could be used to benchmark overall execution time of some chunk of code, running in cycle. The usage is: void foo(void) { TIMEIT_BLOCK_INIT(overall_bar); for (...) { ... TIMEIT_BLOCK_BEGIN(over_bar); bar(); TIMEIT_BLOCK_END(oberall_bar); ... } TIMEIT_BLOCK_STATS(overall_bar) } This would print total time which was spent on running function bar(). |
Commit Details:
Full Hash: 82570cbd47407654fe6f585cfebf448ff269a3ea
SVN Revision: 58282
Parent Commit: 9dc2fa3
Lines Changed: +22, -0