Chromium Code Reviews| 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()); |