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

Unified Diff: examples/dart/traced_application/lib/main.dart

Issue 1357503002: Add tracing event for first connection. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | examples/trace_me/trace_me_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/dart/traced_application/lib/main.dart
diff --git a/examples/dart/traced_application/lib/main.dart b/examples/dart/traced_application/lib/main.dart
index 74c2ad2c823a123c416580f9ce0951b294a9336c..680c3a2d11bc4001e97c83563cecb02fed78cdc1 100644
--- a/examples/dart/traced_application/lib/main.dart
+++ b/examples/dart/traced_application/lib/main.dart
@@ -35,6 +35,13 @@ class TestUsingTracingApp extends Application {
new Timer.periodic(new Duration(seconds: 1), (t) => function1());
}
+ @override
+ void acceptConnection(String requestorUrl, String resolvedUrl,
+ ApplicationConnection connection) {
+ _tracing.traceInstant("connected", "traced_application");
+ }
+
+
void function1() {
var trace = _tracing.beginFunction("function1", "traced_application");
waitForMilliseconds(100);
« no previous file with comments | « no previous file | examples/trace_me/trace_me_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698