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

Side by Side Diff: runtime/vm/pages.cc

Issue 1157173005: Include 'fixedId' key when printing service ids (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/report_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/pages.h" 5 #include "vm/pages.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/compiler_stats.h" 8 #include "vm/compiler_stats.h"
9 #include "vm/gc_marker.h" 9 #include "vm/gc_marker.h"
10 #include "vm/gc_sweeper.h" 10 #include "vm/gc_sweeper.h"
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 it.page()->WriteProtect(read_only); 628 it.page()->WriteProtect(read_only);
629 } 629 }
630 } 630 }
631 631
632 632
633 void PageSpace::PrintToJSONObject(JSONObject* object) { 633 void PageSpace::PrintToJSONObject(JSONObject* object) {
634 Isolate* isolate = Isolate::Current(); 634 Isolate* isolate = Isolate::Current();
635 ASSERT(isolate != NULL); 635 ASSERT(isolate != NULL);
636 JSONObject space(object, "old"); 636 JSONObject space(object, "old");
637 space.AddProperty("type", "HeapSpace"); 637 space.AddProperty("type", "HeapSpace");
638 space.AddProperty("id", "heaps/old");
639 space.AddProperty("name", "old"); 638 space.AddProperty("name", "old");
640 space.AddProperty("vmName", "PageSpace"); 639 space.AddProperty("vmName", "PageSpace");
641 space.AddProperty("collections", collections()); 640 space.AddProperty("collections", collections());
642 space.AddProperty("used", UsedInWords() * kWordSize); 641 space.AddProperty("used", UsedInWords() * kWordSize);
643 space.AddProperty("capacity", CapacityInWords() * kWordSize); 642 space.AddProperty("capacity", CapacityInWords() * kWordSize);
644 space.AddProperty("external", ExternalInWords() * kWordSize); 643 space.AddProperty("external", ExternalInWords() * kWordSize);
645 space.AddProperty("time", MicrosecondsToSeconds(gc_time_micros())); 644 space.AddProperty("time", MicrosecondsToSeconds(gc_time_micros()));
646 if (collections() > 0) { 645 if (collections() > 0) {
647 int64_t run_time = OS::GetCurrentTimeMicros() - isolate->start_time(); 646 int64_t run_time = OS::GetCurrentTimeMicros() - isolate->start_time();
648 run_time = Utils::Maximum(run_time, static_cast<int64_t>(0)); 647 run_time = Utils::Maximum(run_time, static_cast<int64_t>(0));
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 return 0; 1132 return 0;
1134 } else { 1133 } else {
1135 ASSERT(total_time >= gc_time); 1134 ASSERT(total_time >= gc_time);
1136 int result = static_cast<int>((static_cast<double>(gc_time) / 1135 int result = static_cast<int>((static_cast<double>(gc_time) /
1137 static_cast<double>(total_time)) * 100); 1136 static_cast<double>(total_time)) * 100);
1138 return result; 1137 return result;
1139 } 1138 }
1140 } 1139 }
1141 1140
1142 } // namespace dart 1141 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/report_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698