| 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/heap_profiler_stack_frame_deduplicator.h" | 5 #include "base/trace_event/heap_profiler_stack_frame_deduplicator.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <string> | 9 #include <string> |
| 8 #include <utility> | 10 #include <utility> |
| 9 | 11 |
| 10 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 11 #include "base/trace_event/trace_event_argument.h" | 13 #include "base/trace_event/trace_event_argument.h" |
| 12 #include "base/trace_event/trace_event_memory_overhead.h" | 14 #include "base/trace_event/trace_event_memory_overhead.h" |
| 13 | 15 |
| 14 namespace base { | 16 namespace base { |
| 15 namespace trace_event { | 17 namespace trace_event { |
| 16 | 18 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 for (const FrameNode& node : frames_) | 106 for (const FrameNode& node : frames_) |
| 105 maps_size += node.children.size() * sizeof(std::pair<StackFrame, int>); | 107 maps_size += node.children.size() * sizeof(std::pair<StackFrame, int>); |
| 106 | 108 |
| 107 overhead->Add("StackFrameDeduplicator", | 109 overhead->Add("StackFrameDeduplicator", |
| 108 sizeof(StackFrameDeduplicator) + maps_size + frames_allocated, | 110 sizeof(StackFrameDeduplicator) + maps_size + frames_allocated, |
| 109 sizeof(StackFrameDeduplicator) + maps_size + frames_resident); | 111 sizeof(StackFrameDeduplicator) + maps_size + frames_resident); |
| 110 } | 112 } |
| 111 | 113 |
| 112 } // namespace trace_event | 114 } // namespace trace_event |
| 113 } // namespace base | 115 } // namespace base |
| OLD | NEW |