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

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: Created 5 years, 10 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 8f1fa7ed3cff67e7b2084d0f5e41014adc647d11..79cf1ca0f924e6f3686cebb2a6cb37f0c1e13133 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,12 @@ void JsonWriter::DumpJson() {
}
}
+ int maxResidentSetSizeMB = sk_tools::getMaxResidentSetSizeMB();
+ if (maxResidentSetSizeMB != -1) {
+ root["process_max_resident_set_size_MB"] =
jcgregorio 2015/02/12 13:15:00 Can you think of a slightly shorter name? Also, d
hal.canary 2015/04/01 20:12:26 Done
+ 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