nanobench: print max RSS in debug mode too.
BUG=skia:2949
R=mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/581083002
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 67646c2..923a0df 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -672,7 +672,10 @@
if (targets.count() == 1) {
config = ""; // Only print the config if we run the same bench on more than one.
}
- SkDebugf("%s\t%s\n", bench->getUniqueName(), config);
+ SkDebugf("%4dM\t%s\t%s\n"
+ , sk_tools::getMaxResidentSetSizeMB()
+ , bench->getUniqueName()
+ , config);
} else if (FLAGS_verbose) {
for (int i = 0; i < FLAGS_samples; i++) {
SkDebugf("%s ", HUMANIZE(samples[i]));