OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |