aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-09-18 07:39:42 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-18 07:39:42 -0700
commit53d2562006ee371222963750009a706cfd1a94f7 (patch)
tree3ae0466a05b14ac6cf9d5c35f41b46bb7fd6c9cc
parent00a653239cb15f60ab06ec7f93b2400976143977 (diff)
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
-rw-r--r--bench/nanobench.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 67646c2667..923a0df7b1 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -672,7 +672,10 @@ int nanobench_main() {
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]));