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

Unified Diff: base/process/process_metrics.h

Issue 2925073002: Move malloc/partition_alloc memory usage functions to base (Closed)
Patch Set: Moved to process_metrics 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.cc » ('j') | base/process/process_metrics.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 b1f52cadbe2a7da8ab7160485ea1d30e21499b0b..500b6c1c4730bfded45f4f8fbbd0a55480007a28 100644
--- a/base/process/process_metrics.h
+++ b/base/process/process_metrics.h
@@ -543,6 +543,12 @@ BASE_EXPORT MachVMRegionResult GetBasicInfo(mach_port_t task,
vm_region_basic_info_64* info);
#endif // defined(OS_MACOSX) && !defined(OS_IOS)
+// Returns total memory usage of malloc.
+BASE_EXPORT size_t GetMallocUsage();
Primiano Tucci (use gerrit) 2017/06/14 12:10:32 I defer this to mark@ but just pointing out that
keishi 2017/06/14 13:21:39 Done.
+
+// Returns total memory usage of partition alloc.
+BASE_EXPORT size_t GetPartitionAllocUsage();
+
} // namespace base
#endif // BASE_PROCESS_PROCESS_METRICS_H_
« no previous file with comments | « no previous file | base/process/process_metrics.cc » ('j') | base/process/process_metrics.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698