-
Bug
-
Resolution: Out of scope
-
P5: Not important
-
None
-
Qt Creator 3.0.0
-
None
-
Windows 7 64 bit
Qt 5.0.1 MSVC 2010
Qt 5.1.1 MinGW 32 bit
- Create a new Qt Quick 2 Application project.
- Add some JavaScript to main.qml.
I used:import QtQuick 2.0 Rectangle { width: 360 height: 360 Text { text: qsTr("Hello World") anchors.centerIn: parent } Timer { interval: 2000 repeat: true running: true onTriggered: { var i; for (i = 1; i < 2500; ++i) { var j; j = i * i; console.log(j); } } } MouseArea { anchors.fill: parent onClicked: { Qt.quit(); } } }
- Configure the project to use a Qt version between 5.0.0 and 5.1.2.
- Build the project.
- Run the application in QML Profiler for about 10 seconds.
I frequently get results like the following:Location Time in Percent Total Time Self Time in Percent Self Time Details main.qml:15 100.32 % 1.277 s 100.00 % 1.273 s onTriggered <program> 100.00 % 1.273 s 0.00 % 0.000 µs Main Program
"100.32 %"? Looks strange to me.