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

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

Issue 191743002: Replace RoundMicrosecondsTo* utility. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« runtime/platform/globals.h ('K') | « runtime/vm/pages.cc ('k') | no next file » | 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) 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
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
OLDNEW
« runtime/platform/globals.h ('K') | « runtime/vm/pages.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698