summaryrefslogtreecommitdiffstats
path: root/src/metrics.cc
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2012-04-17 17:07:06 (GMT)
committerNico Weber <thakis@chromium.org>2012-04-17 17:07:06 (GMT)
commit07b693d3deca1bb25b7e181521ca8b34707804a7 (patch)
tree9edcc3c0fccf58127c6bb24c8272560aa1e2e54d /src/metrics.cc
parent16cab01cccf0b3ccadb150cd54f760929b3cc07e (diff)
downloadNinja-07b693d3deca1bb25b7e181521ca8b34707804a7.zip
Ninja-07b693d3deca1bb25b7e181521ca8b34707804a7.tar.gz
Ninja-07b693d3deca1bb25b7e181521ca8b34707804a7.tar.bz2
Switch the order of total and avg columns in -d stats output.
Diffstat (limited to 'src/metrics.cc')
-rw-r--r--src/metrics.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/metrics.cc b/src/metrics.cc
index b2433aa..fb44868 100644
--- a/src/metrics.cc
+++ b/src/metrics.cc
@@ -102,14 +102,14 @@ void Metrics::Report() {
width = max((int)(*i)->name.size(), width);
}
- printf("%-*s\t%-6s\t%9s\t%s\n", width,
- "metric", "count", "total (ms)" , "avg (us)");
+ printf("%-*s\t%-6s\t%-9s\t%s\n", width,
+ "metric", "count", "avg (us)", "total (ms)");
for (vector<Metric*>::iterator i = metrics_.begin();
i != metrics_.end(); ++i) {
Metric* metric = *i;
double total = metric->sum / (double)1000;
double avg = metric->sum / (double)metric->count;
printf("%-*s\t%-6d\t%-8.1f\t%.1f\n", width, metric->name.c_str(),
- metric->count, total, avg);
+ metric->count, avg, total);
}
}