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

Unified Diff: runtime/vm/heap.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.cc
===================================================================
--- runtime/vm/heap.cc (revision 33491)
+++ runtime/vm/heap.cc (working copy)
@@ -490,8 +490,8 @@
"]\n", // End with a comma to make it easier to import in spreadsheets.
isolate->main_port(), space_str, GCReasonToString(stats_.reason_),
stats_.num_,
- RoundMicrosecondsToSeconds(stats_.before_.micros_ - isolate->start_time()),
- RoundMicrosecondsToMilliseconds(stats_.after_.micros_ -
+ MicrosecondsToSeconds(stats_.before_.micros_ - isolate->start_time()),
+ MicrosecondsToMilliseconds(stats_.after_.micros_ -
stats_.before_.micros_),
RoundWordsToKB(stats_.before_.new_used_in_words_),
RoundWordsToKB(stats_.after_.new_used_in_words_),
@@ -501,10 +501,10 @@
RoundWordsToKB(stats_.after_.old_used_in_words_),
RoundWordsToKB(stats_.before_.old_capacity_in_words_),
RoundWordsToKB(stats_.after_.old_capacity_in_words_),
- RoundMicrosecondsToMilliseconds(stats_.times_[0]),
- RoundMicrosecondsToMilliseconds(stats_.times_[1]),
- RoundMicrosecondsToMilliseconds(stats_.times_[2]),
- RoundMicrosecondsToMilliseconds(stats_.times_[3]),
+ MicrosecondsToMilliseconds(stats_.times_[0]),
+ MicrosecondsToMilliseconds(stats_.times_[1]),
+ MicrosecondsToMilliseconds(stats_.times_[2]),
+ MicrosecondsToMilliseconds(stats_.times_[3]),
stats_.data_[0],
stats_.data_[1],
stats_.data_[2],
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698