Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(762)

Unified Diff: sky/examples/raw/spinning_square.dart

Issue 1152483006: Make tracing work in the new .dart world. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« sky/engine/core/frame/Tracing.idl ('K') | « sky/engine/core/frame/Tracing.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/spinning_square.dart
diff --git a/sky/examples/raw/spinning_square.dart b/sky/examples/raw/spinning_square.dart
index 17072330d56a229ea035b708aba5d86df568c8ef..dbc0140d08711e0c1e2ac5daa27a75280633f9e5 100644
--- a/sky/examples/raw/spinning_square.dart
+++ b/sky/examples/raw/spinning_square.dart
@@ -7,6 +7,7 @@ import 'dart:sky';
double timeBase = null;
void beginFrame(double timeStamp) {
+ tracing.begin('beginFrame');
if (timeBase == null)
timeBase = timeStamp;
double delta = timeStamp - timeBase;
@@ -17,6 +18,7 @@ void beginFrame(double timeStamp) {
new Paint()..setARGB(255, 0, 255, 0));
view.picture = canvas.endRecording();
view.scheduleFrame();
+ tracing.end('beginFrame');
}
void main() {
« sky/engine/core/frame/Tracing.idl ('K') | « sky/engine/core/frame/Tracing.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698