diff options
author | Evan Martin <martine@danga.com> | 2012-04-26 03:21:26 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-04-26 03:21:26 (GMT) |
commit | 3fda08c34d4c91a4d16855ce40a2d0ab13a4d768 (patch) | |
tree | b251ed8745b667d6229e35f82dd9653ad6c2d9b0 /src | |
parent | 5527e5485a2e513384d513cae9fc1209b4e590a6 (diff) | |
parent | 07b693d3deca1bb25b7e181521ca8b34707804a7 (diff) | |
download | Ninja-3fda08c34d4c91a4d16855ce40a2d0ab13a4d768.zip Ninja-3fda08c34d4c91a4d16855ce40a2d0ab13a4d768.tar.gz Ninja-3fda08c34d4c91a4d16855ce40a2d0ab13a4d768.tar.bz2 |
Merge pull request #272 from nico/statstweak
Switch the order of total and avg columns in -d stats output.
Diffstat (limited to 'src')
-rw-r--r-- | src/metrics.cc | 6 |
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); } } |