| 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 #include "base/trace_event/process_memory_maps.h" | 5 #include "base/trace_event/process_memory_maps.h" |
| 6 | 6 |
| 7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/trace_event/trace_event_argument.h" | 9 #include "base/trace_event/trace_event_argument.h" |
| 10 | 10 |
| 11 namespace base { | 11 namespace base { |
| 12 namespace trace_event { | 12 namespace trace_event { |
| 13 | 13 |
| 14 // static | 14 // static |
| 15 const uint32 ProcessMemoryMaps::VMRegion::kProtectionFlagsRead = 4; | 15 const uint32_t ProcessMemoryMaps::VMRegion::kProtectionFlagsRead = 4; |
| 16 const uint32 ProcessMemoryMaps::VMRegion::kProtectionFlagsWrite = 2; | 16 const uint32_t ProcessMemoryMaps::VMRegion::kProtectionFlagsWrite = 2; |
| 17 const uint32 ProcessMemoryMaps::VMRegion::kProtectionFlagsExec = 1; | 17 const uint32_t ProcessMemoryMaps::VMRegion::kProtectionFlagsExec = 1; |
| 18 | 18 |
| 19 ProcessMemoryMaps::VMRegion::VMRegion() | 19 ProcessMemoryMaps::VMRegion::VMRegion() |
| 20 : start_address(0), | 20 : start_address(0), |
| 21 size_in_bytes(0), | 21 size_in_bytes(0), |
| 22 protection_flags(0), | 22 protection_flags(0), |
| 23 byte_stats_private_dirty_resident(0), | 23 byte_stats_private_dirty_resident(0), |
| 24 byte_stats_private_clean_resident(0), | 24 byte_stats_private_clean_resident(0), |
| 25 byte_stats_shared_dirty_resident(0), | 25 byte_stats_shared_dirty_resident(0), |
| 26 byte_stats_shared_clean_resident(0), | 26 byte_stats_shared_clean_resident(0), |
| 27 byte_stats_swapped(0), | 27 byte_stats_swapped(0), |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 value->EndArray(); | 66 value->EndArray(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void ProcessMemoryMaps::Clear() { | 69 void ProcessMemoryMaps::Clear() { |
| 70 vm_regions_.clear(); | 70 vm_regions_.clear(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 } // namespace trace_event | 73 } // namespace trace_event |
| 74 } // namespace base | 74 } // namespace base |
| OLD | NEW |