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

Side by Side Diff: src/heap-snapshot-generator.cc

Issue 681333003: Heap profiler clean-up: remove dead code (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/heap-snapshot-generator.h ('k') | no next file » | 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/heap-snapshot-generator-inl.h" 7 #include "src/heap-snapshot-generator-inl.h"
8 8
9 #include "src/allocation-tracker.h" 9 #include "src/allocation-tracker.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2282 matching lines...) Expand 10 before | Expand all | Expand 10 after
2293 0); 2293 0);
2294 } 2294 }
2295 2295
2296 2296
2297 NativeObjectsExplorer::NativeObjectsExplorer( 2297 NativeObjectsExplorer::NativeObjectsExplorer(
2298 HeapSnapshot* snapshot, 2298 HeapSnapshot* snapshot,
2299 SnapshottingProgressReportingInterface* progress) 2299 SnapshottingProgressReportingInterface* progress)
2300 : isolate_(snapshot->profiler()->heap_object_map()->heap()->isolate()), 2300 : isolate_(snapshot->profiler()->heap_object_map()->heap()->isolate()),
2301 snapshot_(snapshot), 2301 snapshot_(snapshot),
2302 names_(snapshot_->profiler()->names()), 2302 names_(snapshot_->profiler()->names()),
2303 progress_(progress),
2304 embedder_queried_(false), 2303 embedder_queried_(false),
2305 objects_by_info_(RetainedInfosMatch), 2304 objects_by_info_(RetainedInfosMatch),
2306 native_groups_(StringsMatch), 2305 native_groups_(StringsMatch),
2307 filler_(NULL) { 2306 filler_(NULL) {
2308 synthetic_entries_allocator_ = 2307 synthetic_entries_allocator_ =
2309 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kSynthetic); 2308 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kSynthetic);
2310 native_entries_allocator_ = 2309 native_entries_allocator_ =
2311 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kNative); 2310 new BasicHeapEntriesAllocator(snapshot, HeapEntry::kNative);
2312 } 2311 }
2313 2312
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
3140 writer_->AddString("\"<dummy>\""); 3139 writer_->AddString("\"<dummy>\"");
3141 for (int i = 1; i < sorted_strings.length(); ++i) { 3140 for (int i = 1; i < sorted_strings.length(); ++i) {
3142 writer_->AddCharacter(','); 3141 writer_->AddCharacter(',');
3143 SerializeString(sorted_strings[i]); 3142 SerializeString(sorted_strings[i]);
3144 if (writer_->aborted()) return; 3143 if (writer_->aborted()) return;
3145 } 3144 }
3146 } 3145 }
3147 3146
3148 3147
3149 } } // namespace v8::internal 3148 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap-snapshot-generator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698