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

Side by Side Diff: src/profiler/heap-snapshot-generator.h

Issue 2020363002: Revert of [heap] Do not invoke GC to make heap iterable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/profiler/heap-profiler.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 #ifndef V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ 5 #ifndef V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_
6 #define V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ 6 #define V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_
7 7
8 #include "include/v8-profiler.h" 8 #include "include/v8-profiler.h"
9 #include "src/base/platform/time.h" 9 #include "src/base/platform/time.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
11 #include "src/profiler/strings-storage.h" 11 #include "src/profiler/strings-storage.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 class AllocationTracker; 16 class AllocationTracker;
17 class AllocationTraceNode; 17 class AllocationTraceNode;
18 class HeapEntry; 18 class HeapEntry;
19 class HeapIterator; 19 class HeapIterator;
20 class HeapProfiler; 20 class HeapProfiler;
21 class HeapSnapshot; 21 class HeapSnapshot;
22 enum class HeapObjectsFiltering;
23 class SnapshotFiller; 22 class SnapshotFiller;
24 23
25 class HeapGraphEdge BASE_EMBEDDED { 24 class HeapGraphEdge BASE_EMBEDDED {
26 public: 25 public:
27 enum Type { 26 enum Type {
28 kContextVariable = v8::HeapGraphEdge::kContextVariable, 27 kContextVariable = v8::HeapGraphEdge::kContextVariable,
29 kElement = v8::HeapGraphEdge::kElement, 28 kElement = v8::HeapGraphEdge::kElement,
30 kProperty = v8::HeapGraphEdge::kProperty, 29 kProperty = v8::HeapGraphEdge::kProperty,
31 kInternal = v8::HeapGraphEdge::kInternal, 30 kInternal = v8::HeapGraphEdge::kInternal,
32 kHidden = v8::HeapGraphEdge::kHidden, 31 kHidden = v8::HeapGraphEdge::kHidden,
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 356
358 void MarkVisitedField(HeapObject* obj, int offset); 357 void MarkVisitedField(HeapObject* obj, int offset);
359 358
360 HeapEntry* AddEntry(HeapObject* object); 359 HeapEntry* AddEntry(HeapObject* object);
361 HeapEntry* AddEntry(HeapObject* object, 360 HeapEntry* AddEntry(HeapObject* object,
362 HeapEntry::Type type, 361 HeapEntry::Type type,
363 const char* name); 362 const char* name);
364 363
365 const char* GetSystemEntryName(HeapObject* object); 364 const char* GetSystemEntryName(HeapObject* object);
366 365
367 template <V8HeapExplorer::ExtractReferencesMethod extractor> 366 template<V8HeapExplorer::ExtractReferencesMethod extractor>
368 bool IterateAndExtractSinglePass(HeapObjectsFiltering filtering); 367 bool IterateAndExtractSinglePass();
369 368
370 bool ExtractReferencesPass1(int entry, HeapObject* obj); 369 bool ExtractReferencesPass1(int entry, HeapObject* obj);
371 bool ExtractReferencesPass2(int entry, HeapObject* obj); 370 bool ExtractReferencesPass2(int entry, HeapObject* obj);
372 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy); 371 void ExtractJSGlobalProxyReferences(int entry, JSGlobalProxy* proxy);
373 void ExtractJSObjectReferences(int entry, JSObject* js_obj); 372 void ExtractJSObjectReferences(int entry, JSObject* js_obj);
374 void ExtractStringReferences(int entry, String* obj); 373 void ExtractStringReferences(int entry, String* obj);
375 void ExtractSymbolReferences(int entry, Symbol* symbol); 374 void ExtractSymbolReferences(int entry, Symbol* symbol);
376 void ExtractJSCollectionReferences(int entry, JSCollection* collection); 375 void ExtractJSCollectionReferences(int entry, JSCollection* collection);
377 void ExtractJSWeakCollectionReferences(int entry, 376 void ExtractJSWeakCollectionReferences(int entry,
378 JSWeakCollection* collection); 377 JSWeakCollection* collection);
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 friend class HeapSnapshotJSONSerializerIterator; 618 friend class HeapSnapshotJSONSerializerIterator;
620 619
621 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); 620 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer);
622 }; 621 };
623 622
624 623
625 } // namespace internal 624 } // namespace internal
626 } // namespace v8 625 } // namespace v8
627 626
628 #endif // V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ 627 #endif // V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/profiler/heap-profiler.cc ('k') | src/profiler/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698