OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/scavenger.h" | 5 #include "vm/scavenger.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 | 723 |
724 void Scavenger::PrintToJSONObject(JSONObject* object) { | 724 void Scavenger::PrintToJSONObject(JSONObject* object) { |
725 JSONObject space(object, "new"); | 725 JSONObject space(object, "new"); |
726 space.AddProperty("type", "@Scavenger"); | 726 space.AddProperty("type", "@Scavenger"); |
727 space.AddProperty("id", "heaps/new"); | 727 space.AddProperty("id", "heaps/new"); |
728 space.AddProperty("name", "Scavenger"); | 728 space.AddProperty("name", "Scavenger"); |
729 space.AddProperty("user_name", "new"); | 729 space.AddProperty("user_name", "new"); |
730 space.AddProperty("collections", collections()); | 730 space.AddProperty("collections", collections()); |
731 space.AddProperty("used", UsedInWords() * kWordSize); | 731 space.AddProperty("used", UsedInWords() * kWordSize); |
732 space.AddProperty("capacity", CapacityInWords() * kWordSize); | 732 space.AddProperty("capacity", CapacityInWords() * kWordSize); |
733 space.AddProperty("time", RoundMicrosecondsToSeconds(gc_time_micros())); | 733 space.AddProperty64("time", RoundMicrosecondsToSeconds(gc_time_micros())); |
734 } | 734 } |
735 | 735 |
736 | 736 |
737 } // namespace dart | 737 } // namespace dart |
OLD | NEW |