Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: base/trace_event/heap_profiler_allocation_context_tracker.cc

Issue 1467453003: [Tracing] Make heap profiler type info a string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698