Index: dm/DMJsonWriter.cpp |
diff --git a/dm/DMJsonWriter.cpp b/dm/DMJsonWriter.cpp |
index e4a3d12d5bf84195527bc79e11fc2e27c442ae91..c017dde5b56c31c9e0ac3a377eecd504d372d9fe 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()); |