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 |
96 }; | 97 }; |
97 static const int kNoEntry; | 98 static const int kNoEntry; |
98 | 99 |
99 HeapEntry() { } | 100 HeapEntry() { } |
100 HeapEntry(HeapSnapshot* snapshot, | 101 HeapEntry(HeapSnapshot* snapshot, |
101 Type type, | 102 Type type, |
102 const char* name, | 103 const char* name, |
103 SnapshotObjectId id, | 104 SnapshotObjectId id, |
104 size_t self_size, | 105 size_t self_size, |
105 unsigned trace_node_id); | 106 unsigned trace_node_id); |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 friend class HeapSnapshotJSONSerializerIterator; | 624 friend class HeapSnapshotJSONSerializerIterator; |
624 | 625 |
625 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); | 626 DISALLOW_COPY_AND_ASSIGN(HeapSnapshotJSONSerializer); |
626 }; | 627 }; |
627 | 628 |
628 | 629 |
629 } // namespace internal | 630 } // namespace internal |
630 } // namespace v8 | 631 } // namespace v8 |
631 | 632 |
632 #endif // V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ | 633 #endif // V8_PROFILER_HEAP_SNAPSHOT_GENERATOR_H_ |
OLD | NEW |