nanobench: upload peak memory usage as its own trace.

We'll end up with a result like this:
      "memory_usage" : {
         "meta" : {
            "max_rss_mb" : 57
         }
      }

BUG=skia:

Review URL: https://codereview.chromium.org/780013002
This commit is contained in:
mtklein 2014-12-04 10:47:02 -08:00 committed by Commit bot
parent 787cdf9ab0
commit e109145bf3

View File

@ -793,6 +793,10 @@ int nanobench_main() {
#endif
}
log->bench("memory_usage", 0,0);
log->config("meta");
log->metric("max_rss_mb", sk_tools::getMaxResidentSetSizeMB());
return 0;
}