Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.0.0-rc1
-
Ubuntu 15.10 64 bit
-
88476a1435a5bc504929061bd0fa7d2c663d9bc7
Description
- Create a new Qt Quick Application project.
- Replace the project's qml file with this:
import QtQuick 2.3 import QtQuick.Window 2.2 Window { visible: true Timer { property int runCount: 0 interval: 2000 repeat: true running: runCount < 2 onTriggered: { runCount += 1; var i; for (i = 1; i < 2500; ++i) { var j = i * i; console.log(j); } } } MouseArea { anchors.fill: parent onClicked: { Qt.quit(); } } Text { text: qsTr("Hello World") anchors.centerIn: parent } }
- Build the project.
- Go to Debug mode and open the QML Profiler.
- Click "Start QML Profiler analysis."
- After a couple of seconds, click the "Stop" button.
- Go to Projects mode and select a different kit for the project.
I switched from my self-build Qt 5.4.2 to Qt 5.5.0 from the official binary package. (The actual Qt version doesn't seem to matter. If I use them in the opposite order, the effect is the same, as if only the switching would be important.) - Build the project.
- Go to Debug mode and open the QML Profiler.
- Click "Start QML Profiler analysis."
- After a couple of seconds, click the "Stop" button.
- If this succeeded, repeat steps 10 and 11.
Creator will show a warning that "Application finished before loading profiled data." It will not receive the data.
Creator should gather and display the data after pressing "Stop".
Found by Squish test tst_simple_analyze.
Attachments
For Gerrit Dashboard: QTCREATORBUG-16073 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
156027,2 | QmlProfiler: Disable run controls after they are finished | 4.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |