New profiler interface
Posted: Thu Apr 24, 2014 11:03 pm
I just checked in a new interface which can be used to add stop-watch like profiling to the code.
Comes with a gui-element (which could still use some improvement, but works basically) and an example how to use it (new example 30).
Note - I haven't created VS project files yet for the example (will do) and MacOSX build will break at the moment (just needs the new files, have to wait until someone with Mac does this).
When you rebuild Irrlicht with _IRR_COMPILE_WITH_PROFILING_ enabled in IrrCompileConfig.h you can also get some profiling data about engine internals. Proposals about where to add some more of them are welcome.
A short description about the design:
The idea is that you add start/stop blocks in the code you want to profile. Preferably with a define-wrapper around it so it can be disabled easily. The whole design is about making this start/stop stuff really fast. There's some comfort functions like scope-profiling which can be done with a single line.
It got added in 4791 to svn trunk: https://sourceforge.net/p/irrlicht/code/4791/
Any feedback about the interface is welcome.
Comes with a gui-element (which could still use some improvement, but works basically) and an example how to use it (new example 30).
Note - I haven't created VS project files yet for the example (will do) and MacOSX build will break at the moment (just needs the new files, have to wait until someone with Mac does this).
When you rebuild Irrlicht with _IRR_COMPILE_WITH_PROFILING_ enabled in IrrCompileConfig.h you can also get some profiling data about engine internals. Proposals about where to add some more of them are welcome.
A short description about the design:
The idea is that you add start/stop blocks in the code you want to profile. Preferably with a define-wrapper around it so it can be disabled easily. The whole design is about making this start/stop stuff really fast. There's some comfort functions like scope-profiling which can be done with a single line.
It got added in 4791 to svn trunk: https://sourceforge.net/p/irrlicht/code/4791/
Any feedback about the interface is welcome.