utility: Added Tracer for collecting time measurements

* define TRACING_ENABLED in utility/tracing.h to enable tracing
* invoke TraceEvent by writing TRACE() at start of function or scope
* provide an event name with TRACE("name")
* press SPACE to show collected traces history and report with accumulated times
This commit is contained in:
Eberhard Graether
2016-06-16 12:03:34 +02:00
parent 6b31a43f75
commit 9560cc4ea6
14 changed files with 401 additions and 9 deletions
+2
View File
@@ -316,6 +316,8 @@ add_files(
utility/ScopedSwitcher.h
utility/TimePoint.cpp
utility/TimePoint.h
utility/tracing.cpp
utility/tracing.h
utility/types.h
utility/UserPaths.cpp
utility/UserPaths.h