Chromium Code Reviews| Index: bench/nanobench.cpp |
| diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp |
| index c8c9c6f6ac669da1900762a32c3f2beca9a78ca8..9e5ba4c7e6d8d57530ff48e2929f60ac7808ec9f 100644 |
| --- a/bench/nanobench.cpp |
| +++ b/bench/nanobench.cpp |
| @@ -10,6 +10,7 @@ |
| #include "Benchmark.h" |
| #include "CrashHandler.h" |
| #include "GMBench.h" |
| +#include "ProcStats.h" |
| #include "ResultsWriter.h" |
| #include "SKPBench.h" |
| #include "Stats.h" |
| @@ -579,7 +580,7 @@ int nanobench_main() { |
| } else if (FLAGS_quiet) { |
| SkDebugf("median\tbench\tconfig\n"); |
| } else { |
| - SkDebugf("loops\tmin\tmedian\tmean\tmax\tstddev\tsamples\tconfig\tbench\n"); |
| + SkDebugf("maxrss\tloops\tmin\tmedian\tmean\tmax\tstddev\tsamples\tconfig\tbench\n"); |
| } |
| SkTDArray<Config> configs; |
| @@ -662,7 +663,8 @@ int nanobench_main() { |
| SkDebugf("%s\t%s\t%s\n", HUMANIZE(stats.median), bench->getName(), config); |
| } else { |
| const double stddev_percent = 100 * sqrt(stats.var) / stats.mean; |
| - SkDebugf("%d\t%s\t%s\t%s\t%s\t%.0f%%\t%s\t%s\t%s\n" |
| + SkDebugf("%4dM\t%d\t%s\t%s\t%s\t%s\t%.0f%%\t%s\t%s\t%s\n" |
| + , sk_tools::getMaxResidentSetSizeMB() |
|
hal.canary
2014/08/19 21:35:59
Is it okay to print -1 here?
|
| , loops |
| , HUMANIZE(stats.min) |
| , HUMANIZE(stats.median) |