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

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

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « base/trace_event/process_memory_dump.cc ('k') | base/trace_event/process_memory_maps.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MAPS_H_ 5 #ifndef BASE_TRACE_EVENT_PROCESS_MEMORY_MAPS_H_
6 #define BASE_TRACE_EVENT_PROCESS_MEMORY_MAPS_H_ 6 #define BASE_TRACE_EVENT_PROCESS_MEMORY_MAPS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 struct VMRegion { 22 struct VMRegion {
23 static const uint32 kProtectionFlagsRead; 23 static const uint32 kProtectionFlagsRead;
24 static const uint32 kProtectionFlagsWrite; 24 static const uint32 kProtectionFlagsWrite;
25 static const uint32 kProtectionFlagsExec; 25 static const uint32 kProtectionFlagsExec;
26 26
27 uint64 start_address; 27 uint64 start_address;
28 uint64 size_in_bytes; 28 uint64 size_in_bytes;
29 uint32 protection_flags; 29 uint32 protection_flags;
30 std::string mapped_file; 30 std::string mapped_file;
31 uint64 mapped_file_offset; 31
32 uint64 byte_stats_resident; 32 // private_resident + shared_resident = resident set size.
33 uint64 byte_stats_anonymous; 33 uint64 byte_stats_private_resident;
34 uint64 byte_stats_shared_resident;
35
36 // For multiprocess accounting.
37 uint64 byte_stats_proportional_resident;
34 }; 38 };
35 39
36 ProcessMemoryMaps(); 40 ProcessMemoryMaps();
37 ~ProcessMemoryMaps(); 41 ~ProcessMemoryMaps();
38 42
39 void AddVMRegion(const VMRegion& region) { vm_regions_.push_back(region); } 43 void AddVMRegion(const VMRegion& region) { vm_regions_.push_back(region); }
40 const std::vector<VMRegion>& vm_regions() const { return vm_regions_; } 44 const std::vector<VMRegion>& vm_regions() const { return vm_regions_; }
41 45
42 // Called at trace generation time to populate the TracedValue. 46 // Called at trace generation time to populate the TracedValue.
43 void AsValueInto(TracedValue* value) const; 47 void AsValueInto(TracedValue* value) const;
44 48
45 private: 49 private:
46 std::vector<VMRegion> vm_regions_; 50 std::vector<VMRegion> vm_regions_;
47 51
48 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryMaps); 52 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryMaps);
49 }; 53 };
50 54
51 } // namespace trace_event 55 } // namespace trace_event
52 } // namespace base 56 } // namespace base
53 57
54 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_MAPS_H_ 58 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_MAPS_H_
OLDNEW
« no previous file with comments | « base/trace_event/process_memory_dump.cc ('k') | base/trace_event/process_memory_maps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698