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

Unified Diff: runtime/observatory/lib/utils.dart

Issue 2204563003: Converted Observatory cpu-profile element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Removed tmp files Created 4 years, 5 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
Index: runtime/observatory/lib/utils.dart
diff --git a/runtime/observatory/lib/utils.dart b/runtime/observatory/lib/utils.dart
index cfc447c7c5cffd5f935ce5f19a9fb0ff04b24fa2..a73916f0cdaa951226f5530a4fcaaa0711295f3c 100644
--- a/runtime/observatory/lib/utils.dart
+++ b/runtime/observatory/lib/utils.dart
@@ -146,6 +146,10 @@ class Utils {
return x.toStringAsFixed(2);
}
+ static String formatDurationInSeconds(Duration x) {
+ return formatSeconds(x.inMilliseconds / 1000.0);
+ }
+
static bool runningInJavaScript() => identical(1.0, 1);
}

Powered by Google App Engine
This is Rietveld 408576698