diff options
author | mtklein <mtklein@chromium.org> | 2014-12-04 10:47:02 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-04 10:47:02 -0800 |
commit | e109145bf31d63963b3f78c6af6e404d5464a55b (patch) | |
tree | eb34cf56bb9c276db9abd2ded49025369f1e3c04 | |
parent | 787cdf9ab06c5afc6fe480ab88268e983505bd32 (diff) |
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
-rw-r--r-- | bench/nanobench.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp index 3f8919d260..a64cbcaf1f 100644 --- a/bench/nanobench.cpp +++ b/bench/nanobench.cpp @@ -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; } |