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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | base/process/process_metrics.cc » ('j') | base/process/process_metrics.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains routines for gathering resource statistics for processes 5 // This file contains routines for gathering resource statistics for processes
6 // running on the system. 6 // running on the system.
7 7
8 #ifndef BASE_PROCESS_PROCESS_METRICS_H_ 8 #ifndef BASE_PROCESS_PROCESS_METRICS_H_
9 #define BASE_PROCESS_PROCESS_METRICS_H_ 9 #define BASE_PROCESS_PROCESS_METRICS_H_
10 10
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 // memory region. 536 // memory region.
537 // Returns info on the first memory region at or after |address|, including 537 // Returns info on the first memory region at or after |address|, including
538 // resident memory and share mode. 538 // resident memory and share mode.
539 // |size| and |info| are output parameters, only valid on Success. 539 // |size| and |info| are output parameters, only valid on Success.
540 BASE_EXPORT MachVMRegionResult GetBasicInfo(mach_port_t task, 540 BASE_EXPORT MachVMRegionResult GetBasicInfo(mach_port_t task,
541 mach_vm_size_t* size, 541 mach_vm_size_t* size,
542 mach_vm_address_t* address, 542 mach_vm_address_t* address,
543 vm_region_basic_info_64* info); 543 vm_region_basic_info_64* info);
544 #endif // defined(OS_MACOSX) && !defined(OS_IOS) 544 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
545 545
546 // Returns total memory usage of malloc.
547 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.
548
549 // Returns total memory usage of partition alloc.
550 BASE_EXPORT size_t GetPartitionAllocUsage();
551
546 } // namespace base 552 } // namespace base
547 553
548 #endif // BASE_PROCESS_PROCESS_METRICS_H_ 554 #endif // BASE_PROCESS_PROCESS_METRICS_H_
OLDNEW
« 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