Always print external time in --trace-gc to make it toolable.
authorhpayer <hpayer@chromium.org>
Thu, 11 Jun 2015 12:20:47 +0000 (05:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 11 Jun 2015 12:21:01 +0000 (12:21 +0000)
BUG=

Review URL: https://codereview.chromium.org/1173243003

Cr-Commit-Position: refs/heads/master@{#28939}

src/heap/gc-tracer.cc

index 6ca724e..4f5b5ae 100644 (file)
@@ -360,10 +360,9 @@ void GCTracer::Print() const {
          static_cast<double>(current_.end_memory_size) / MB);
 
   int external_time = static_cast<int>(current_.scopes[Scope::EXTERNAL]);
-  if (external_time > 0) Output("%d / ", external_time);
-
   double duration = current_.end_time - current_.start_time;
-  Output("%.1f ms", duration);
+  Output("%.1f / %d ms", duration, external_time);
+
   if (current_.type == Event::SCAVENGER) {
     if (current_.incremental_marking_steps > 0) {
       Output(" (+ %.1f ms in %d steps since last GC)",