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

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

Issue 1405103002: Dart: Merge message pipe query and read into one native call. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | mojo/dart/embedder/mojo_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/dart/mojo_rtt_benchmark/lib/main.dart
diff --git a/examples/dart/mojo_rtt_benchmark/lib/main.dart b/examples/dart/mojo_rtt_benchmark/lib/main.dart
index f412bd0f1dda0ca9ce5a286ef218d05f3bc1d1f6..3a2293b322106ad6602bc9bf02ce1e973ce617f4 100644
--- a/examples/dart/mojo_rtt_benchmark/lib/main.dart
+++ b/examples/dart/mojo_rtt_benchmark/lib/main.dart
@@ -75,14 +75,15 @@ class EchoTracingApp extends Application {
if (_warmup) {
_echo(idx, "ping").then((_) => new Timer(kDelay, () => _run(idx + 1)));
} else {
- _tracedEcho(idx).then((_) => new Timer(kDelay, () => _run(idx + 1)));
+ _tracedEcho(idx, "ping")
+ .then((_) => new Timer(kDelay, () => _run(idx + 1)));
}
}
}
- Future _tracedEcho(int idx) {
+ Future _tracedEcho(int idx, String s) {
int start = getTimeTicksNow();
- return _echo(idx, "ping").then((_) {
+ return _echo(idx, s).then((_) {
int end = getTimeTicksNow();
_tracing.traceDuration("ping", "mojo_rtt_benchmark", start, end);
});
« no previous file with comments | « no previous file | mojo/dart/embedder/mojo_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698