Blender Git Loki
Git Commits -> Revision 552d068
Revision 552d068 by Sergey Sharybin (master) August 19, 2013, 10:16 (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(). -- svn merge -r58281:58283 ^/branches/soc-2013-depsgraph_mt |
Commit Details:
Full Hash: 552d068565172a2b7eaa538cb1c343e098715e4e
SVN Revision: 59275
Parent Commit: 36ffc7a
Lines Changed: +20, -0
1 Modified Path:
/source/blender/blenlib/PIL_time.h (+20, -0) (Diff)