forked from qt-creator/qt-creator
QmlProfiler: Visual feedback
Change-Id: Ib0d50b0699a6553079c84bbc8d67ecc3c3397bc2 Reviewed-on: http://codereview.qt.nokia.com/1594 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
This commit is contained in:
@@ -38,6 +38,7 @@ Rectangle {
|
||||
id: root
|
||||
|
||||
property bool dataAvailable: false;
|
||||
property int eventCount: 0;
|
||||
|
||||
// move the cursor in the editor
|
||||
signal updateCursorPosition
|
||||
@@ -53,6 +54,7 @@ Rectangle {
|
||||
Plotter.reset();
|
||||
view.clearData();
|
||||
root.dataAvailable = false;
|
||||
root.eventCount = 0;
|
||||
rangeMover.x = 2
|
||||
rangeMover.opacity = 0
|
||||
}
|
||||
@@ -133,8 +135,9 @@ Rectangle {
|
||||
root.clearData();
|
||||
}
|
||||
|
||||
if (!root.dataAvailable && event === 0) //### only handle paint event
|
||||
if (!root.dataAvailable && event === 0) { //### only handle paint event
|
||||
Plotter.values.push(time);
|
||||
}
|
||||
}
|
||||
|
||||
onRange: {
|
||||
@@ -151,6 +154,8 @@ Rectangle {
|
||||
Plotter.ranges.push( { type: type, start: startTime, duration: length, label: data, fileName: fileName, line: line, nestingLevel: nestingInType, nestingDepth: Plotter.nestingDepth[type] } );
|
||||
if (nestingInType == 1)
|
||||
Plotter.nestingDepth[type] = 1;
|
||||
root.eventCount = Plotter.ranges.length;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -500,4 +505,8 @@ Rectangle {
|
||||
height: flick.height + labels.y
|
||||
visible: false
|
||||
}
|
||||
|
||||
StatusDisplay {
|
||||
anchors.centerIn: flick
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user