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_allocation_context_tracker.h" | 5 #include "base/trace_event/heap_profiler_allocation_context_tracker.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <iterator> | 8 #include <iterator> |
9 | 9 |
10 #include "base/atomicops.h" | 10 #include "base/atomicops.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 // Copy as much of the bottom of the pseudo stack into the backtrace as | 100 // Copy as much of the bottom of the pseudo stack into the backtrace as |
101 // possible. | 101 // possible. |
102 for (; src != src_end && dst != dst_end; src++, dst++) | 102 for (; src != src_end && dst != dst_end; src++, dst++) |
103 *dst = *src; | 103 *dst = *src; |
104 | 104 |
105 // If there is room for more, fill the remaining slots with empty frames. | 105 // If there is room for more, fill the remaining slots with empty frames. |
106 std::fill(dst, dst_end, nullptr); | 106 std::fill(dst, dst_end, nullptr); |
107 } | 107 } |
108 | 108 |
109 ctx.type_id = 0; | 109 ctx.type_name = nullptr; |
110 | 110 |
111 return ctx; | 111 return ctx; |
112 } | 112 } |
113 | 113 |
114 } // namespace trace_event | 114 } // namespace trace_event |
115 } // namespace base | 115 } // namespace base |
OLD | NEW |