OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 * HeapGraphNode represents a node in a heap graph. | 238 * HeapGraphNode represents a node in a heap graph. |
239 */ | 239 */ |
240 class V8EXPORT HeapGraphNode { | 240 class V8EXPORT HeapGraphNode { |
241 public: | 241 public: |
242 enum Type { | 242 enum Type { |
243 kInternal = 0, // Internal node, a virtual one, for housekeeping. | 243 kInternal = 0, // Internal node, a virtual one, for housekeeping. |
244 kArray = 1, // An array of elements. | 244 kArray = 1, // An array of elements. |
245 kString = 2, // A string. | 245 kString = 2, // A string. |
246 kObject = 3, // A JS object (except for arrays and strings). | 246 kObject = 3, // A JS object (except for arrays and strings). |
247 kCode = 4, // Compiled code. | 247 kCode = 4, // Compiled code. |
248 kClosure = 5 // Function closure. | 248 kClosure = 5, // Function closure. |
| 249 kRegExp = 6 // RegExp. |
249 }; | 250 }; |
250 | 251 |
251 /** Returns node type (see HeapGraphNode::Type). */ | 252 /** Returns node type (see HeapGraphNode::Type). */ |
252 Type GetType() const; | 253 Type GetType() const; |
253 | 254 |
254 /** | 255 /** |
255 * Returns node name. Depending on node's type this can be the name | 256 * Returns node name. Depending on node's type this can be the name |
256 * of the constructor (for objects), the name of the function (for | 257 * of the constructor (for objects), the name of the function (for |
257 * closures), string value, or an empty string (for compiled code). | 258 * closures), string value, or an empty string (for compiled code). |
258 */ | 259 */ |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 }; | 398 }; |
398 | 399 |
399 | 400 |
400 } // namespace v8 | 401 } // namespace v8 |
401 | 402 |
402 | 403 |
403 #undef V8EXPORT | 404 #undef V8EXPORT |
404 | 405 |
405 | 406 |
406 #endif // V8_V8_PROFILER_H_ | 407 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |