diff options
author | 2014-08-19 15:55:55 -0700 | |
---|---|---|
committer | 2014-08-19 15:55:55 -0700 | |
commit | afb4379dbca4d4d3824ace183a7348d24bc1589f (patch) | |
tree | 8eb8aeb9bd612669796e5c51afc35cdb46308f36 /gm | |
parent | d2a3522503ca0c39829f1bb41f01201d1affdaf6 (diff) |
Print max RSS in GM and nanobench too.
Everyone used MB, so update the API to just return that.
BUG=skia:
R=halcanary@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/483323002
Diffstat (limited to 'gm')
-rw-r--r-- | gm/gmmain.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp index 7f012bc79c..674cab9dc0 100644 --- a/gm/gmmain.cpp +++ b/gm/gmmain.cpp @@ -18,6 +18,7 @@ #include "gm_expectations.h" #include "system_preferences.h" #include "CrashHandler.h" +#include "ProcStats.h" #include "Resources.h" #include "SamplePipeControllers.h" #include "SkBitmap.h" @@ -2386,10 +2387,11 @@ int tool_main(int argc, char** argv) { gmsRun++; SkISize size = gm->getISize(); - SkDebugf("%sdrawing... %s [%d %d]\n", moduloStr.c_str(), shortName, + SkDebugf("%4dM %sdrawing... %s [%d %d]\n", + sk_tools::getMaxResidentSetSizeMB(), moduloStr.c_str(), shortName, size.width(), size.height()); if (!FLAGS_dryRun) - run_multiple_configs(gmmain, gm, configs, pdfRasterizers, tileGridReplayScales, + run_multiple_configs(gmmain, gm, configs, pdfRasterizers, tileGridReplayScales, grFactory, gpuAPI); } |