diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2017-09-06 16:18:29 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2017-09-25 11:33:29 +0000 |
commit | 83210400b1967496977122fb89e8b744f4745732 (patch) | |
tree | f390e257e71f99a3ba2a0a5528048d258a3e9887 /src/libs/utils/utils-lib.pri | |
parent | 3924d3deac33827f924f9d51e17f09d3e1ece76f (diff) | |
download | qt-creator-83210400b1967496977122fb89e8b744f4745732.tar.gz |
Benchmarks: Provide infrastructure for benchmarks
... and use it for the profiling report.
Instantiate a Utils::Benchmarker(...) to report a data point (which
will be created at destruction time, reporting the live-time of the
object).
Alternatively you can use Utils::Benchmarker::report(...) to record
your data point.
Independent of how you create a datapoint, it will be reported through
the qtc.benchmark logging category and can get pushed to a database
from a script parsing creator's output.
Note: The plugin-loading uses the existing -profiling infrastructure,
so you need to start Creator with -profile to see data points.
Change-Id: I18e6b84137d0f49ee5e12e7c3d75323005ce5a29
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/libs/utils/utils-lib.pri')
-rw-r--r-- | src/libs/utils/utils-lib.pri | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libs/utils/utils-lib.pri b/src/libs/utils/utils-lib.pri index c181a8e25a..822d247e90 100644 --- a/src/libs/utils/utils-lib.pri +++ b/src/libs/utils/utils-lib.pri @@ -21,7 +21,9 @@ win32: LIBS += -luser32 -lshell32 # PortsGatherer win32: LIBS += -liphlpapi -lws2_32 -SOURCES += $$PWD/environment.cpp \ +SOURCES += \ + $$PWD/benchmarker.cpp \ + $$PWD/environment.cpp \ $$PWD/environmentmodel.cpp \ $$PWD/environmentdialog.cpp \ $$PWD/qtcprocess.cpp \ @@ -122,6 +124,7 @@ win32:SOURCES += $$PWD/consoleprocess_win.cpp else:SOURCES += $$PWD/consoleprocess_unix.cpp HEADERS += \ + $$PWD/benchmarker.h \ $$PWD/environment.h \ $$PWD/environmentmodel.h \ $$PWD/environmentdialog.h \ |