use_profiler.cpp Example

This usage:

Optimizations:

If logging on dedicated thread, the output for "profile.txt" could look like:

gather time:      0.796875 seconds 
write time:       0.78125 seconds 
filter time:      0.15625 seconds 
otherthread time: 1.156250 seconds 



If logging on same thread, the output for "profile.txt" could look like:

gather time:      5.562500 seconds 
write time:       5.265625 seconds 
filter time:      0.31250 seconds 
otherthread time: 0.0 seconds 


Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback