OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/child/child_discardable_shared_memory_manager.h" | 5 #include "content/child/child_discardable_shared_memory_manager.h" |
6 | 6 |
7 #include "base/atomic_sequence_num.h" | 7 #include "base/atomic_sequence_num.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/debug/crash_logging.h" | 9 #include "base/debug/crash_logging.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/discardable_memory.h" | 11 #include "base/memory/discardable_memory.h" |
11 #include "base/memory/discardable_shared_memory.h" | 12 #include "base/memory/discardable_shared_memory.h" |
12 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
13 #include "base/process/memory.h" | 14 #include "base/process/memory.h" |
14 #include "base/process/process_metrics.h" | 15 #include "base/process/process_metrics.h" |
15 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
16 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
17 #include "base/trace_event/memory_dump_manager.h" | 18 #include "base/trace_event/memory_dump_manager.h" |
18 #include "base/trace_event/trace_event.h" | 19 #include "base/trace_event/trace_event.h" |
19 #include "content/common/child_process_messages.h" | 20 #include "content/common/child_process_messages.h" |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 "discardable-memory-allocated"; | 312 "discardable-memory-allocated"; |
312 base::debug::SetCrashKeyValue(kDiscardableMemoryAllocatedKey, | 313 base::debug::SetCrashKeyValue(kDiscardableMemoryAllocatedKey, |
313 base::Uint64ToString(new_bytes_total)); | 314 base::Uint64ToString(new_bytes_total)); |
314 | 315 |
315 static const char kDiscardableMemoryFreeKey[] = "discardable-memory-free"; | 316 static const char kDiscardableMemoryFreeKey[] = "discardable-memory-free"; |
316 base::debug::SetCrashKeyValue(kDiscardableMemoryFreeKey, | 317 base::debug::SetCrashKeyValue(kDiscardableMemoryFreeKey, |
317 base::Uint64ToString(new_bytes_free)); | 318 base::Uint64ToString(new_bytes_free)); |
318 } | 319 } |
319 | 320 |
320 } // namespace content | 321 } // namespace content |
OLD | NEW |