summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcodegen_test.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2021-08-19 23:04:39 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2021-09-01 07:32:24 +0000
commitcc940d52be7b84e23b9b39469e8a38cb16aa9e46 (patch)
treeda92166f3373531ba5b283cd0140619e12e9528e /src/plugins/cpptools/cppcodegen_test.cpp
parent37254cb92ce4b63b354f7fb6d1211dbded0ea9f1 (diff)
downloadqt-creator-cc940d52be7b84e23b9b39469e8a38cb16aa9e46.tar.gz
Measure the time spent on starting and waiting for start
Measure it on demand. The printout will appear when QTC_MEASURE_PROCESS env variable is set. It may be easily combined with QTC_USE_QPROCESS to compare the time spent on freezing Creator when starting Creator or when loading a big project, like Creator project. In order to compare the measurement between old implementation (using directly QProcess) and new implementation (using process launcher) of QtcProcess do the following (linux): 1. To measure the new implementation: QTC_MEASURE_PROCESS= ./bin/qtcreator 2. To measure the old implementation: QTC_USE_QPROCESS= QTC_MEASURE_PROCESS= ./bin/qtcreator How to measure (two scenarios, A and B): A. Launch Creator (don't load any project), wait a bit until all processes finished. Look for the last value in the 11th column ([A/M] Total Measurement, A means all measured functions, M means in main thread only). This value has the greatest influence on GUI freeze - the higher it is, the longer the GUI is frozen. Measure it with 1. (new) and 2. (old) implementation and share your results. B. Launch Creator and load a Creator project. Wait until all processes finished (taskbar should be empty). Look for the last value in the 11th column. Measure it with 1. (new) and 2. (old) implementation and share your results. C* (Additional one) If only you notice that launching a certain QtcProcess takes suspiciously too long, replay your scenario that triggers this process with 1. and 2. and share your results of the 11th column. Change-Id: I549c0a9fd0b3d6223f3d27288130553d99ab768e Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppcodegen_test.cpp')
0 files changed, 0 insertions, 0 deletions