| 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 "components/tracing/process_metrics_memory_dump_provider.h" | 5 #include "components/tracing/common/process_metrics_memory_dump_provider.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 12 #include "base/trace_event/process_memory_dump.h" | 12 #include "base/trace_event/process_memory_dump.h" |
| 13 #include "base/trace_event/process_memory_maps.h" | 13 #include "base/trace_event/process_memory_maps.h" |
| 14 #include "base/trace_event/process_memory_totals.h" | 14 #include "base/trace_event/process_memory_totals.h" |
| 15 #include "base/trace_event/trace_event_argument.h" | 15 #include "base/trace_event/trace_event_argument.h" |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 EXPECT_EQ(32 * 1024UL, regions_2[0].byte_stats_proportional_resident); | 225 EXPECT_EQ(32 * 1024UL, regions_2[0].byte_stats_proportional_resident); |
| 226 EXPECT_EQ(16 * 1024UL, regions_2[0].byte_stats_shared_clean_resident); | 226 EXPECT_EQ(16 * 1024UL, regions_2[0].byte_stats_shared_clean_resident); |
| 227 EXPECT_EQ(12 * 1024UL, regions_2[0].byte_stats_shared_dirty_resident); | 227 EXPECT_EQ(12 * 1024UL, regions_2[0].byte_stats_shared_dirty_resident); |
| 228 EXPECT_EQ(8 * 1024UL, regions_2[0].byte_stats_private_clean_resident); | 228 EXPECT_EQ(8 * 1024UL, regions_2[0].byte_stats_private_clean_resident); |
| 229 EXPECT_EQ(4 * 1024UL, regions_2[0].byte_stats_private_dirty_resident); | 229 EXPECT_EQ(4 * 1024UL, regions_2[0].byte_stats_private_dirty_resident); |
| 230 EXPECT_EQ(0 * 1024UL, regions_2[0].byte_stats_swapped); | 230 EXPECT_EQ(0 * 1024UL, regions_2[0].byte_stats_swapped); |
| 231 } | 231 } |
| 232 #endif // defined(OS_LINUX) || defined(OS_ANDROID) | 232 #endif // defined(OS_LINUX) || defined(OS_ANDROID) |
| 233 | 233 |
| 234 } // namespace tracing | 234 } // namespace tracing |
| OLD | NEW |