summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/gc/collector/garbage_collector.cc1
-rw-r--r--runtime/runtime.cc6
2 files changed, 5 insertions, 2 deletions
diff --git a/runtime/gc/collector/garbage_collector.cc b/runtime/gc/collector/garbage_collector.cc
index 2ef3d92b57..b8ad62410a 100644
--- a/runtime/gc/collector/garbage_collector.cc
+++ b/runtime/gc/collector/garbage_collector.cc
@@ -244,6 +244,7 @@ void GarbageCollector::DumpPerformanceInfo(std::ostream& os) {
<< GetName() << " throughput: " << freed_objects / seconds << "/s / "
<< PrettySize(freed_bytes / seconds) << "/s"
<< " per cpu-time: "
+ << static_cast<uint64_t>(freed_bytes / cpu_seconds) << "/s / "
<< PrettySize(freed_bytes / cpu_seconds) << "/s\n";
}
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index bd0e5a4815..f30ba0c06b 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -343,9 +343,11 @@ Runtime::~Runtime() {
double post_gc_weighted_allocated_bytes =
heap_->GetPostGcWeightedAllocatedBytes() / process_cpu_time;
- LOG_STREAM(INFO) << "Pre GC weighted bytes allocated over CPU time: "
+ LOG_STREAM(INFO) << "Average bytes allocated at GC start, weighted by CPU time between GCs: "
+ << static_cast<uint64_t>(pre_gc_weighted_allocated_bytes)
<< " (" << PrettySize(pre_gc_weighted_allocated_bytes) << ")";
- LOG_STREAM(INFO) << "Post GC weighted bytes allocated over CPU time: "
+ LOG_STREAM(INFO) << "Average bytes allocated at GC end, weighted by CPU time between GCs: "
+ << static_cast<uint64_t>(post_gc_weighted_allocated_bytes)
<< " (" << PrettySize(post_gc_weighted_allocated_bytes) << ")"
<< "\n";
}