| 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_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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 static const uint32_t kProtectionFlagsRead; | 25 static const uint32_t kProtectionFlagsRead; |
| 26 static const uint32_t kProtectionFlagsWrite; | 26 static const uint32_t kProtectionFlagsWrite; |
| 27 static const uint32_t kProtectionFlagsExec; | 27 static const uint32_t kProtectionFlagsExec; |
| 28 static const uint32_t kProtectionFlagsMayshare; | 28 static const uint32_t kProtectionFlagsMayshare; |
| 29 | 29 |
| 30 VMRegion(); | 30 VMRegion(); |
| 31 VMRegion(const VMRegion& other); | 31 VMRegion(const VMRegion& other); |
| 32 | 32 |
| 33 uint64_t start_address; | 33 uint64_t start_address; |
| 34 uint64_t size_in_bytes; | 34 uint64_t size_in_bytes; |
| 35 uint64_t module_timestamp; |
| 35 uint32_t protection_flags; | 36 uint32_t protection_flags; |
| 36 std::string mapped_file; | 37 std::string mapped_file; |
| 37 | 38 |
| 38 // private_dirty_resident + private_clean_resident + shared_dirty_resident + | 39 // private_dirty_resident + private_clean_resident + shared_dirty_resident + |
| 39 // shared_clean_resident = resident set size. | 40 // shared_clean_resident = resident set size. |
| 40 uint64_t byte_stats_private_dirty_resident; | 41 uint64_t byte_stats_private_dirty_resident; |
| 41 uint64_t byte_stats_private_clean_resident; | 42 uint64_t byte_stats_private_clean_resident; |
| 42 uint64_t byte_stats_shared_dirty_resident; | 43 uint64_t byte_stats_shared_dirty_resident; |
| 43 uint64_t byte_stats_shared_clean_resident; | 44 uint64_t byte_stats_shared_clean_resident; |
| 44 | 45 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 63 private: | 64 private: |
| 64 std::vector<VMRegion> vm_regions_; | 65 std::vector<VMRegion> vm_regions_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryMaps); | 67 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryMaps); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace trace_event | 70 } // namespace trace_event |
| 70 } // namespace base | 71 } // namespace base |
| 71 | 72 |
| 72 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_MAPS_H_ | 73 #endif // BASE_TRACE_EVENT_PROCESS_MEMORY_MAPS_H_ |
| OLD | NEW |