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

Unified Diff: webkit/glue/webkitplatformsupport_impl.cc

Issue 9138019: Estimate renderer memory usage in MacOS via working set size instead of page file size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webkitplatformsupport_impl.cc
diff --git a/webkit/glue/webkitplatformsupport_impl.cc b/webkit/glue/webkitplatformsupport_impl.cc
index 26064fb27e412d960a06f4a1f70f03236275a106..abd0a0a2343066ecd09f2431750391b214ccac23 100644
--- a/webkit/glue/webkitplatformsupport_impl.cc
+++ b/webkit/glue/webkitplatformsupport_impl.cc
@@ -645,7 +645,7 @@ static size_t memoryUsageMBMac() {
ProcessMetrics::CreateProcessMetrics(base::GetCurrentProcessHandle(),
NULL);
DCHECK(process_metrics);
- return process_metrics->GetPagefileUsage() >> 20;
+ return process_metrics->GetWorkingSetSize() >> 20;
}
#endif
« 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