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

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: Rebase Created 5 years 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 #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
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
OLDNEW
« no previous file with comments | « base/trace_event/heap_profiler_allocation_context.cc ('k') | base/trace_event/heap_profiler_heap_dump_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698