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 valuesdone = false;
|
||||||
var xmargin = 0;
|
var xmargin = 0;
|
||||||
var ymargin = 0;
|
var ymargin = 0;
|
||||||
|
var drawFpsGraph = false;
|
||||||
|
|
||||||
var names = [ "Painting", "Compiling", "Creating", "Binding", "Handling Signal"]
|
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.
|
//### 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
|
//draw fps overlay
|
||||||
var heightScale = height / 60;
|
var heightScale = height / 60;
|
||||||
ctxt.beginPath();
|
ctxt.beginPath();
|
||||||
@@ -129,6 +131,7 @@ function drawData(canvas, ctxt, region)
|
|||||||
ctxt.fillStyle = grad;
|
ctxt.fillStyle = grad;
|
||||||
ctxt.fill();
|
ctxt.fill();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function plot(canvas, ctxt, region)
|
function plot(canvas, ctxt, region)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user