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

Unified Diff: base/process/process_metrics.h

Issue 2549803003: Add function to compute proportional set size for OS_WIN (Closed)
Patch Set: Created 4 years 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 | base/process/process_metrics_win.cc » ('j') | base/process/process_metrics_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_metrics.h
diff --git a/base/process/process_metrics.h b/base/process/process_metrics.h
index d9c9952201b816f8c1a28691a7e96add983378c3..aa444ddac139710df1e8605cebdd811e58d278c2 100644
--- a/base/process/process_metrics.h
+++ b/base/process/process_metrics.h
@@ -145,6 +145,8 @@ class BASE_EXPORT ProcessMetrics {
// usage in bytes, as per definition of WorkingSetBytes. Note that this
// function is somewhat expensive on Windows (a few ms per process).
bool GetWorkingSetKBytes(WorkingSetKBytes* ws_usage) const;
+ // Computes pss (proportional set size) of a process.
brucedawson 2016/12/05 19:22:02 The comment about cost from a few lines above shou
chengx 2016/12/06 02:51:38 Done.
+ bool GetProportionalSetSizeBytes(uint64_t* pss_bytes) const;
#if defined(OS_MACOSX)
// Fills both CommitedKBytes and WorkingSetKBytes in a single operation. This
« no previous file with comments | « no previous file | base/process/process_metrics_win.cc » ('j') | base/process/process_metrics_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698