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

Unified Diff: runtime/observatory/lib/src/allocation_profile/allocation_profile.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/service_io.dart ('k') | runtime/observatory/lib/src/app/application.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/allocation_profile/allocation_profile.dart
diff --git a/runtime/observatory/lib/src/allocation_profile/allocation_profile.dart b/runtime/observatory/lib/src/allocation_profile/allocation_profile.dart
index 739597bed901595dacad0c31779dfcfe47f11bdf..1f7cff1115d3cb861905709c12370acd9e43df87 100644
--- a/runtime/observatory/lib/src/allocation_profile/allocation_profile.dart
+++ b/runtime/observatory/lib/src/allocation_profile/allocation_profile.dart
@@ -14,11 +14,11 @@ class AllocationProfile implements M.AllocationProfile {
final Iterable<ClassHeapStats> members;
AllocationProfile(S.ServiceMap map)
- : lastAccumulatorReset = _intString2DateTime(map[_lastAccumulatorReset]),
- lastServiceGC = _intString2DateTime(map[_lastServiceGC]),
- oldSpace = new S.HeapSpace()..update(map['heaps']['old']),
- newSpace = new S.HeapSpace()..update(map['heaps']['new']),
- members = map['members'].map(_convertMember).toList();
+ : lastAccumulatorReset = _intString2DateTime(map[_lastAccumulatorReset]),
+ lastServiceGC = _intString2DateTime(map[_lastServiceGC]),
+ oldSpace = new S.HeapSpace()..update(map['heaps']['old']),
+ newSpace = new S.HeapSpace()..update(map['heaps']['new']),
+ members = map['members'].map(_convertMember).toList();
static DateTime _intString2DateTime(String milliseconds) {
if ((milliseconds == null) || milliseconds == '') {
@@ -41,9 +41,9 @@ class ClassHeapStats implements M.ClassHeapStats {
final int promotedBytes;
ClassHeapStats(S.ServiceMap map)
- : clazz = map['class'],
- oldSpace = new S.Allocations()..update(map['old']),
- newSpace = new S.Allocations()..update(map['new']),
- promotedInstances = map['promotedInstances'],
- promotedBytes = map['promotedBytes'];
+ : clazz = map['class'],
+ oldSpace = new S.Allocations()..update(map['old']),
+ newSpace = new S.Allocations()..update(map['new']),
+ promotedInstances = map['promotedInstances'],
+ promotedBytes = map['promotedBytes'];
}
« no previous file with comments | « runtime/observatory/lib/service_io.dart ('k') | runtime/observatory/lib/src/app/application.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698