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

Side by Side Diff: base/trace_event/process_memory_totals.h

Issue 2839733004: Fill in PlatformPrivateFootprint on Linux (Closed)
Patch Set: update for parent patch changes Created 3 years, 7 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
OLDNEW
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
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 PlatformPrivateFootprint& GetPlatformPrivateFootprint() { 54 PlatformPrivateFootprint& GetPlatformPrivateFootprint() {
56 return platform_private_footprint_; 55 return platform_private_footprint_;
(...skipping 25 matching lines...) Expand all
82 // Extra metrics for OS-specific statistics. 81 // Extra metrics for OS-specific statistics.
83 std::map<const char*, uint64_t> extra_fields_; 82 std::map<const char*, uint64_t> extra_fields_;
84 83
85 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryTotals); 84 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryTotals);
86 }; 85 };
87 86
88 } // namespace trace_event 87 } // namespace trace_event
89 } // namespace base 88 } // namespace base
90 89
91 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_ 90 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698