OLD | NEW |
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 <deque> | 8 #include <deque> |
9 #include <unordered_map> | 9 #include <unordered_map> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 kString = v8::HeapGraphNode::kString, | 85 kString = v8::HeapGraphNode::kString, |
86 kObject = v8::HeapGraphNode::kObject, | 86 kObject = v8::HeapGraphNode::kObject, |
87 kCode = v8::HeapGraphNode::kCode, | 87 kCode = v8::HeapGraphNode::kCode, |
88 kClosure = v8::HeapGraphNode::kClosure, | 88 kClosure = v8::HeapGraphNode::kClosure, |
89 kRegExp = v8::HeapGraphNode::kRegExp, | 89 kRegExp = v8::HeapGraphNode::kRegExp, |
90 kHeapNumber = v8::HeapGraphNode::kHeapNumber, | 90 kHeapNumber = v8::HeapGraphNode::kHeapNumber, |
91 kNative = v8::HeapGraphNode::kNative, | 91 kNative = v8::HeapGraphNode::kNative, |
92 kSynthetic = v8::HeapGraphNode::kSynthetic, | 92 kSynthetic = v8::HeapGraphNode::kSynthetic, |
93 kConsString = v8::HeapGraphNode::kConsString, | 93 kConsString = v8::HeapGraphNode::kConsString, |
94 kSlicedString = v8::HeapGraphNode::kSlicedString, | 94 kSlicedString = v8::HeapGraphNode::kSlicedString, |
95 kSymbol = v8::HeapGraphNode::kSymbol, | 95 kSymbol = v8::HeapGraphNode::kSymbol |
96 kSimdValue = v8::HeapGraphNode::kSimdValue | |
97 }; | 96 }; |
98 static const int kNoEntry; | 97 static const int kNoEntry; |
99 | 98 |
100 HeapEntry() { } | 99 HeapEntry() { } |
101 HeapEntry(HeapSnapshot* snapshot, | 100 HeapEntry(HeapSnapshot* snapshot, |
102 Type type, | 101 Type type, |
103 const char* name, | 102 const char* name, |
104 SnapshotObjectId id, | 103 SnapshotObjectId id, |
105 size_t self_size, | 104 size_t self_size, |
106 unsigned trace_node_id); | 105 unsigned trace_node_id); |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 friend class HeapSnapshotJSONSerializerIterator; | 623 friend class HeapSnapshotJSONSerializerIterator; |
625 | 624 |
626 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 625 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
627 }; | 626 }; |
628 | 627 |
629 | 628 |
630 } // namespace internal | 629 } // namespace internal |
631 } // namespace v8 | 630 } // namespace v8 |
632 | 631 |
633 #endif // V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ | 632 #endif // V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ |
OLD | NEW |