Commit 71e053d6 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlProfiler: render background in gray when outside trace



Change-Id: I80a44f80e12a05e9c3be6ea708f8be41435792b7
Reviewed-by: default avatarKai Koehne <kai.koehne@nokia.com>
parent ea631133
......@@ -88,6 +88,20 @@ Canvas2D {
ctxt.stroke();
}
}
// gray off out-of-bounds areas
var rectWidth;
if (startTime < qmlEventList.traceStartTime()) {
ctxt.fillStyle = "rgba(127,127,127,0.2)";
rectWidth = (qmlEventList.traceStartTime() - startTime) * spacing;
ctxt.fillRect(0, 0, rectWidth, height);
}
if (endTime > qmlEventList.traceEndTime()) {
ctxt.fillStyle = "rgba(127,127,127,0.2)";
var rectX = (qmlEventList.traceEndTime() - startTime) * spacing;
rectWidth = (endTime - qmlEventList.traceEndTime()) * spacing;
ctxt.fillRect(rectX, 0, rectWidth, height);
}
}
function updateMarks(start, end) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment