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

2 Modified Paths:

/source/blender/blenkernel/intern/scene.c (+2, -0) (Diff)
/source/blender/blenlib/PIL_time.h (+20, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021