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

Unified Diff: components/crash/content/app/fallback_crash_handler_win.cc

Issue 2653953002: Grab crash handler's peak commit charge in fallback handler (Closed)
Patch Set: Created 3 years, 11 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 | components/crash/content/app/fallback_crash_handler_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crash/content/app/fallback_crash_handler_win.cc
diff --git a/components/crash/content/app/fallback_crash_handler_win.cc b/components/crash/content/app/fallback_crash_handler_win.cc
index a554673f6a606f2228480d3f15deba7ed1c949cc..2e3310d874dd335f9dfb607fad22f6bf481b198b 100644
--- a/components/crash/content/app/fallback_crash_handler_win.cc
+++ b/components/crash/content/app/fallback_crash_handler_win.cc
@@ -9,6 +9,8 @@
#include <algorithm>
#include <map>
+#include <memory>
+#include <string>
#include <vector>
#include "base/command_line.h"
@@ -52,6 +54,10 @@ void AcquireMemoryMetrics(const base::Process& process,
crash_keys->insert(std::make_pair(
"ProcessPeakWorkingSetSize",
base::Uint64ToString(process_memory.PeakWorkingSetSize / kPageSize)));
+
+ crash_keys->insert(std::make_pair(
+ "ProcessPeakPagefileUsage",
+ base::Uint64ToString(process_memory.PeakPagefileUsage / kPageSize)));
}
// Grab system commit memory. Also best effort.
« no previous file with comments | « no previous file | components/crash/content/app/fallback_crash_handler_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698