| 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 | 8 |
| 9 #include "base/atomicops.h" | 9 #include "base/atomicops.h" |
| 10 #include "base/threading/thread_local_storage.h" | 10 #include "base/threading/thread_local_storage.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 // Copy as much of the bottom of the pseudo stack into the backtrace as | 106 // Copy as much of the bottom of the pseudo stack into the backtrace as |
| 107 // possible. | 107 // possible. |
| 108 for (; src != src_end && dst != dst_end; src++, dst++) | 108 for (; src != src_end && dst != dst_end; src++, dst++) |
| 109 *dst = *src; | 109 *dst = *src; |
| 110 | 110 |
| 111 // If there is room for more, fill the remaining slots with empty frames. | 111 // If there is room for more, fill the remaining slots with empty frames. |
| 112 std::fill(dst, dst_end, nullptr); | 112 std::fill(dst, dst_end, nullptr); |
| 113 } | 113 } |
| 114 | 114 |
| 115 ctx.type_id = 0; | 115 ctx.type_name = nullptr; |
| 116 | 116 |
| 117 return ctx; | 117 return ctx; |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace trace_event | 120 } // namespace trace_event |
| 121 } // namespace base | 121 } // namespace base |
| OLD | NEW |