diff options
author | halcanary <halcanary@google.com> | 2015-04-01 13:31:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-01 13:31:34 -0700 |
commit | c79a391a38c68503e43dc0ca775db9ed161f00b0 (patch) | |
tree | 372036d70fc648c9dcca0f3fef2bdb63000df44b /dm/DMJsonWriter.cpp | |
parent | be27a118c277af23377d38e9b3bfd3fcc276114f (diff) |
DM: JSON output adds process_max_resident_set_size_MB
Review URL: https://codereview.chromium.org/917943002
Diffstat (limited to 'dm/DMJsonWriter.cpp')
-rw-r--r-- | dm/DMJsonWriter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dm/DMJsonWriter.cpp b/dm/DMJsonWriter.cpp index e4a3d12d5b..c017dde5b5 100644 --- a/dm/DMJsonWriter.cpp +++ b/dm/DMJsonWriter.cpp @@ -7,6 +7,7 @@ #include "DMJsonWriter.h" +#include "ProcStats.h" #include "SkCommonFlags.h" #include "SkData.h" #include "SkJSONCPP.h" @@ -74,6 +75,11 @@ void JsonWriter::DumpJson() { } } + int maxResidentSetSizeMB = sk_tools::getMaxResidentSetSizeMB(); + if (maxResidentSetSizeMB != -1) { + root["max_rss_MB"] = sk_tools::getMaxResidentSetSizeMB(); + } + SkString path = SkOSPath::Join(FLAGS_writePath[0], "dm.json"); sk_mkdir(FLAGS_writePath[0]); SkFILEWStream stream(path.c_str()); |