| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_ | 5 #ifndef BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_ |
| 6 #define BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_ | 6 #define BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // PrivateMemoryFootprint. | 36 // PrivateMemoryFootprint. |
| 37 struct PlatformPrivateFootprint { | 37 struct PlatformPrivateFootprint { |
| 38 // macOS 10.12+ | 38 // macOS 10.12+ |
| 39 uint64_t phys_footprint_bytes = 0; | 39 uint64_t phys_footprint_bytes = 0; |
| 40 | 40 |
| 41 // macOS [all versions] | 41 // macOS [all versions] |
| 42 uint64_t internal_bytes = 0; | 42 uint64_t internal_bytes = 0; |
| 43 uint64_t compressed_bytes = 0; | 43 uint64_t compressed_bytes = 0; |
| 44 | 44 |
| 45 // Linux, Android, ChromeOS | 45 // Linux, Android, ChromeOS |
| 46 // TODO(hjd): https://crbug.com/707019 | |
| 47 uint64_t rss_anon_bytes = 0; | 46 uint64_t rss_anon_bytes = 0; |
| 48 uint64_t vm_swap_bytes = 0; | 47 uint64_t vm_swap_bytes = 0; |
| 49 | 48 |
| 50 // On Windows, | 49 // On Windows, |
| 51 // TBD: https://crbug.com/707022 | 50 // TBD: https://crbug.com/707022 |
| 52 // On iOS, | 51 // On iOS, |
| 53 // TBD: https://crbug.com/714961 | 52 // TBD: https://crbug.com/714961 |
| 54 }; | 53 }; |
| 55 const PlatformPrivateFootprint& GetPlatformPrivateFootprint() const { | 54 const PlatformPrivateFootprint& GetPlatformPrivateFootprint() const { |
| 56 return platform_private_footprint_; | 55 return platform_private_footprint_; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 85 // Extra metrics for OS-specific statistics. | 84 // Extra metrics for OS-specific statistics. |
| 86 std::map<const char*, uint64_t> extra_fields_; | 85 std::map<const char*, uint64_t> extra_fields_; |
| 87 | 86 |
| 88 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryTotals); | 87 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryTotals); |
| 89 }; | 88 }; |
| 90 | 89 |
| 91 } // namespace trace_event | 90 } // namespace trace_event |
| 92 } // namespace base | 91 } // namespace base |
| 93 | 92 |
| 94 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_ | 93 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_ |
| OLD | NEW |