Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Unified Diff: dm/DMJsonWriter.cpp

Issue 917943002: DM: JSON output adds process_max_resident_set_size_MB (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-04-01 (Wednesday) 16:11:58 EDT Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698