OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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_V8_PROFILER_H_ | 5 #ifndef V8_V8_PROFILER_H_ |
6 #define V8_V8_PROFILER_H_ | 6 #define V8_V8_PROFILER_H_ |
7 | 7 |
8 #include "v8.h" | 8 #include "v8.h" |
9 | 9 |
10 /** | 10 /** |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 const HeapGraphNode* GetToNode() const; | 212 const HeapGraphNode* GetToNode() const; |
213 }; | 213 }; |
214 | 214 |
215 | 215 |
216 /** | 216 /** |
217 * HeapGraphNode represents a node in a heap graph. | 217 * HeapGraphNode represents a node in a heap graph. |
218 */ | 218 */ |
219 class V8_EXPORT HeapGraphNode { | 219 class V8_EXPORT HeapGraphNode { |
220 public: | 220 public: |
221 enum Type { | 221 enum Type { |
222 kHidden = 0, // Hidden node, may be filtered when shown to user. | 222 kHidden = 0, // Hidden node, may be filtered when shown to user. |
223 kArray = 1, // An array of elements. | 223 kArray = 1, // An array of elements. |
224 kString = 2, // A string. | 224 kString = 2, // A string. |
225 kObject = 3, // A JS object (except for arrays and strings). | 225 kObject = 3, // A JS object (except for arrays and strings). |
226 kCode = 4, // Compiled code. | 226 kCode = 4, // Compiled code. |
227 kClosure = 5, // Function closure. | 227 kClosure = 5, // Function closure. |
228 kRegExp = 6, // RegExp. | 228 kRegExp = 6, // RegExp. |
229 kHeapNumber = 7, // Number stored in the heap. | 229 kHeapNumber = 7, // Number stored in the heap. |
230 kNative = 8, // Native object (not from V8 heap). | 230 kNative = 8, // Native object (not from V8 heap). |
231 kSynthetic = 9, // Synthetic object, usualy used for grouping | 231 kSynthetic = 9, // Synthetic object, usualy used for grouping |
232 // snapshot items together. | 232 // snapshot items together. |
233 kConsString = 10, // Concatenated string. A pair of pointers to strings. | 233 kConsString = 10, // Concatenated string. A pair of pointers to strings. |
234 kSlicedString = 11 // Sliced string. A fragment of another string. | 234 kSlicedString = 11, // Sliced string. A fragment of another string. |
| 235 kSymbol = 12 // A Symbol (ES6). |
235 }; | 236 }; |
236 | 237 |
237 /** Returns node type (see HeapGraphNode::Type). */ | 238 /** Returns node type (see HeapGraphNode::Type). */ |
238 Type GetType() const; | 239 Type GetType() const; |
239 | 240 |
240 /** | 241 /** |
241 * Returns node name. Depending on node's type this can be the name | 242 * Returns node name. Depending on node's type this can be the name |
242 * of the constructor (for objects), the name of the function (for | 243 * of the constructor (for objects), the name of the function (for |
243 * closures), string value, or an empty string (for compiled code). | 244 * closures), string value, or an empty string (for compiled code). |
244 */ | 245 */ |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 uint32_t index; // Index of the time interval that was changed. | 602 uint32_t index; // Index of the time interval that was changed. |
602 uint32_t count; // New value of count field for the interval with this index. | 603 uint32_t count; // New value of count field for the interval with this index. |
603 uint32_t size; // New value of size field for the interval with this index. | 604 uint32_t size; // New value of size field for the interval with this index. |
604 }; | 605 }; |
605 | 606 |
606 | 607 |
607 } // namespace v8 | 608 } // namespace v8 |
608 | 609 |
609 | 610 |
610 #endif // V8_V8_PROFILER_H_ | 611 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |