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

Side by Side Diff: src/profiler/allocation-tracker.cc

Issue 1869433004: Fix printf formats (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address review comments. Created 4 years, 8 months 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
« no previous file with comments | « src/log-utils.cc ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project 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 "src/profiler/allocation-tracker.h" 5 #include "src/profiler/allocation-tracker.h"
6 6
7 #include "src/frames-inl.h" 7 #include "src/frames-inl.h"
8 #include "src/objects-inl.h" 8 #include "src/objects-inl.h"
9 #include "src/profiler/heap-snapshot-generator-inl.h" 9 #include "src/profiler/heap-snapshot-generator-inl.h"
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 AddRange(to, size, trace_node_id); 142 AddRange(to, size, trace_node_id);
143 } 143 }
144 144
145 145
146 void AddressToTraceMap::Clear() { 146 void AddressToTraceMap::Clear() {
147 ranges_.clear(); 147 ranges_.clear();
148 } 148 }
149 149
150 150
151 void AddressToTraceMap::Print() { 151 void AddressToTraceMap::Print() {
152 PrintF("[AddressToTraceMap (%" V8_SIZET_PREFIX V8PRIuPTR "): \n", 152 PrintF("[AddressToTraceMap (%" PRIuS "): \n", ranges_.size());
153 ranges_.size());
154 for (RangeMap::iterator it = ranges_.begin(); it != ranges_.end(); ++it) { 153 for (RangeMap::iterator it = ranges_.begin(); it != ranges_.end(); ++it) {
155 PrintF("[%p - %p] => %u\n", it->second.start, it->first, 154 PrintF("[%p - %p] => %u\n", it->second.start, it->first,
156 it->second.trace_node_id); 155 it->second.trace_node_id);
157 } 156 }
158 PrintF("]\n"); 157 PrintF("]\n");
159 } 158 }
160 159
161 160
162 void AddressToTraceMap::RemoveRange(Address start, Address end) { 161 void AddressToTraceMap::RemoveRange(Address start, Address end) {
163 RangeMap::iterator it = ranges_.upper_bound(start); 162 RangeMap::iterator it = ranges_.upper_bound(start);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 const v8::WeakCallbackData<v8::Value, void>& data) { 331 const v8::WeakCallbackData<v8::Value, void>& data) {
333 UnresolvedLocation* loc = 332 UnresolvedLocation* loc =
334 reinterpret_cast<UnresolvedLocation*>(data.GetParameter()); 333 reinterpret_cast<UnresolvedLocation*>(data.GetParameter());
335 GlobalHandles::Destroy(reinterpret_cast<Object**>(loc->script_.location())); 334 GlobalHandles::Destroy(reinterpret_cast<Object**>(loc->script_.location()));
336 loc->script_ = Handle<Script>::null(); 335 loc->script_ = Handle<Script>::null();
337 } 336 }
338 337
339 338
340 } // namespace internal 339 } // namespace internal
341 } // namespace v8 340 } // namespace v8
OLDNEW
« no previous file with comments | « src/log-utils.cc ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698