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

Unified Diff: base/process/process_metrics.h

Issue 2925073002: Move malloc/partition_alloc memory usage functions to base (Closed)
Patch Set: Moved to ProcessMetrics method, etc Created 3 years, 6 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 | base/process/process_metrics_posix.cc » ('j') | no next file with comments »
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 b1f52cadbe2a7da8ab7160485ea1d30e21499b0b..717cb0097680af4934b6d2ac74b6bad589bcd190 100644
--- a/base/process/process_metrics.h
+++ b/base/process/process_metrics.h
@@ -230,6 +230,9 @@ class BASE_EXPORT ProcessMetrics {
uint64_t GetVmSwapBytes() const;
#endif // defined(OS_LINUX) || defined(OS_ANDROID)
+ // Returns total memory usage of malloc.
+ size_t GetMallocUsage();
+
private:
#if !defined(OS_MACOSX) || defined(OS_IOS)
explicit ProcessMetrics(ProcessHandle process);
« no previous file with comments | « no previous file | base/process/process_metrics_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698