| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BASE_MEMORY_MALLOC_STATISTICS_H_ |
| 6 #define BASE_MEMORY_MALLOC_STATISTICS_H_ |
| 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include "base/base_export.h" |
| 11 |
| 12 namespace base { |
| 13 namespace memory { |
| 14 |
| 15 struct BASE_EXPORT MallocStatistics { |
| 16 size_t allocated_objects_size; |
| 17 size_t allocated_objects_count; |
| 18 size_t metadata_fragmentation_caches; |
| 19 size_t total_virtual_size; |
| 20 size_t resident_size; |
| 21 |
| 22 MallocStatistics() |
| 23 : allocated_objects_size(0), |
| 24 allocated_objects_count(0), |
| 25 metadata_fragmentation_caches(0), |
| 26 total_virtual_size(0), |
| 27 resident_size(0) {} |
| 28 |
| 29 static MallocStatistics GetStatistics(); |
| 30 }; |
| 31 |
| 32 } // namespace trace_event |
| 33 } // namespace base |
| 34 |
| 35 #endif // BASE_MEMORY_MALLOC_STATISTICS_H_ |
| OLD | NEW |