forked from qt-creator/qt-creator
QmlProfiler: disabled FPS display (for now)
Change-Id: Ib35d3833e7d360b924ecaaaf46ae5c65f3bd7b8e Reviewed-by: Kai Koehne Reviewed-on: http://codereview.qt.nokia.com/434 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
committed by
Kai Koehne
parent
d103bb7a60
commit
e463874ca6
@@ -39,6 +39,7 @@ var frameFps = [ ];
|
||||
var valuesdone = false;
|
||||
var xmargin = 0;
|
||||
var ymargin = 0;
|
||||
var drawFpsGraph = false;
|
||||
|
||||
var names = [ "Painting", "Compiling", "Creating", "Binding", "Handling Signal"]
|
||||
//### need better way to manipulate color from QML. In the meantime, these need to be kept in sync.
|
||||
@@ -113,6 +114,7 @@ function drawData(canvas, ctxt, region)
|
||||
}
|
||||
}
|
||||
|
||||
if (drawFpsGraph) {
|
||||
//draw fps overlay
|
||||
var heightScale = height / 60;
|
||||
ctxt.beginPath();
|
||||
@@ -128,6 +130,7 @@ function drawData(canvas, ctxt, region)
|
||||
grad.addColorStop(1, "rgba(255,0,0,.5)");
|
||||
ctxt.fillStyle = grad;
|
||||
ctxt.fill();
|
||||
}
|
||||
}
|
||||
|
||||
function plot(canvas, ctxt, region)
|
||||
|
||||
Reference in New Issue
Block a user