Commit 28a43627 authored by Eric Seidel's avatar Eric Seidel

Make tracing work in the new .dart world.

R=abarth@chromium.org, viktorl@google.com

Review URL: https://codereview.chromium.org/1152483006
parent 6543b55c
...@@ -7,6 +7,7 @@ import 'dart:sky'; ...@@ -7,6 +7,7 @@ import 'dart:sky';
double timeBase = null; double timeBase = null;
void beginFrame(double timeStamp) { void beginFrame(double timeStamp) {
tracing.begin('beginFrame');
if (timeBase == null) if (timeBase == null)
timeBase = timeStamp; timeBase = timeStamp;
double delta = timeStamp - timeBase; double delta = timeStamp - timeBase;
...@@ -17,6 +18,7 @@ void beginFrame(double timeStamp) { ...@@ -17,6 +18,7 @@ void beginFrame(double timeStamp) {
new Paint()..setARGB(255, 0, 255, 0)); new Paint()..setARGB(255, 0, 255, 0));
view.picture = canvas.endRecording(); view.picture = canvas.endRecording();
view.scheduleFrame(); view.scheduleFrame();
tracing.end('beginFrame');
} }
void main() { void main() {
......
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