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

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

Issue 2345023003: Use dartfmt on Observatory code (Closed)
Patch Set: merge Created 4 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 | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/observatory/lib/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/tracer.dart
diff --git a/runtime/observatory/lib/tracer.dart b/runtime/observatory/lib/tracer.dart
index ffe08929f6fb22ef86cc1f7dbf854e9fe556fb77..dc9c4b632427feb270be8802a31e898ff655d9d9 100644
--- a/runtime/observatory/lib/tracer.dart
+++ b/runtime/observatory/lib/tracer.dart
@@ -13,13 +13,13 @@ _deepCopy(src) {
if (src is Map) {
var dest = {};
src.forEach((key, val) {
- dest[key] = _deepCopy(val);
+ dest[key] = _deepCopy(val);
});
return dest;
} else if (src is List) {
var dest = [];
src.forEach((val) {
- dest.add(_deepCopy(val));
+ dest.add(_deepCopy(val));
});
return dest;
} else {
@@ -54,6 +54,7 @@ class Tracer extends Observable {
_current = new Tracer();
}
}
+
static void stop() {
if (_current != null) {
_current.cancel();
@@ -74,9 +75,9 @@ class Tracer extends Observable {
_time = new Stopwatch();
_time.start();
loggerSub = Logger.root.onRecord.listen((LogRecord rec) {
- // Echo all log messages to the trace.
- trace('${rec.level.name}: ${rec.message}');
- });
+ // Echo all log messages to the trace.
+ trace('${rec.level.name}: ${rec.message}');
+ });
reset();
}
« no previous file with comments | « runtime/observatory/lib/src/service/object.dart ('k') | runtime/observatory/lib/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698