blender/source
Sergey Sharybin 552d068565 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
2013-08-19 10:16:23 +00:00
..
blender Utility benchmarking macros 2013-08-19 10:16:23 +00:00
blenderplayer Fix for own commit, stub functions all use the STUB_ASSERT macro now. 2013-07-25 16:04:26 +00:00
creator Made modifiers_getVirtualModifierList safe for threading 2013-08-19 09:05:34 +00:00
gameengine Made modifiers_getVirtualModifierList safe for threading 2013-08-19 09:05:34 +00:00
icons Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00
tests test operator script, add ability to load files from a path while testing operators. 2013-06-28 16:30:34 +00:00
CMakeLists.txt
SConscript Added GPL header to sconscripts! 2012-12-17 08:01:43 +00:00