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

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

Issue 2852473002: memory-infra: Plumb platform_private_footprint to MemoryDumpManager (Closed)
Patch Set: remove log 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Linux, Android, ChromeOS 45 // Linux, Android, ChromeOS
46 // TODO(hjd): https://crbug.com/707019 46 // TODO(hjd): https://crbug.com/707019
47 uint64_t rss_anon_bytes = 0; 47 uint64_t rss_anon_bytes = 0;
48 uint64_t vm_swap_bytes = 0; 48 uint64_t vm_swap_bytes = 0;
49 49
50 // On Windows, 50 // On Windows,
51 // TBD: https://crbug.com/707022 51 // TBD: https://crbug.com/707022
52 // On iOS, 52 // On iOS,
53 // TBD: https://crbug.com/714961 53 // TBD: https://crbug.com/714961
54 }; 54 };
55 const PlatformPrivateFootprint& GetPlatformPrivateFootprint() const {
56 return platform_private_footprint_;
57 }
55 PlatformPrivateFootprint& GetPlatformPrivateFootprint() { 58 PlatformPrivateFootprint& GetPlatformPrivateFootprint() {
56 return platform_private_footprint_; 59 return platform_private_footprint_;
57 } 60 }
58 61
59 uint64_t peak_resident_set_bytes() const { return peak_resident_set_bytes_; } 62 uint64_t peak_resident_set_bytes() const { return peak_resident_set_bytes_; }
60 void set_peak_resident_set_bytes(uint64_t value) { 63 void set_peak_resident_set_bytes(uint64_t value) {
61 peak_resident_set_bytes_ = value; 64 peak_resident_set_bytes_ = value;
62 } 65 }
63 66
64 // On some platforms (recent linux kernels, see goo.gl/sMvAVz) the peak rss 67 // On some platforms (recent linux kernels, see goo.gl/sMvAVz) the peak rss
(...skipping 17 matching lines...) Expand all
82 // Extra metrics for OS-specific statistics. 85 // Extra metrics for OS-specific statistics.
83 std::map<const char*, uint64_t> extra_fields_; 86 std::map<const char*, uint64_t> extra_fields_;
84 87
85 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryTotals); 88 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryTotals);
86 }; 89 };
87 90
88 } // namespace trace_event 91 } // namespace trace_event
89 } // namespace base 92 } // namespace base
90 93
91 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_ 94 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_TOTALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698