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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 enum Type { | 251 enum Type { |
252 kHidden = 0, // Hidden node, may be filtered when shown to user. | 252 kHidden = 0, // Hidden node, may be filtered when shown to user. |
253 kArray = 1, // An array of elements. | 253 kArray = 1, // An array of elements. |
254 kString = 2, // A string. | 254 kString = 2, // A string. |
255 kObject = 3, // A JS object (except for arrays and strings). | 255 kObject = 3, // A JS object (except for arrays and strings). |
256 kCode = 4, // Compiled code. | 256 kCode = 4, // Compiled code. |
257 kClosure = 5, // Function closure. | 257 kClosure = 5, // Function closure. |
258 kRegExp = 6, // RegExp. | 258 kRegExp = 6, // RegExp. |
259 kHeapNumber = 7, // Number stored in the heap. | 259 kHeapNumber = 7, // Number stored in the heap. |
260 kNative = 8, // Native object (not from V8 heap). | 260 kNative = 8, // Native object (not from V8 heap). |
261 kSynthetic = 9, // Synthetic object, usualy used for grouping | 261 kSynthetic = 9 // Synthetic object, usualy used for grouping |
262 // snapshot items together. | 262 // snapshot items together. |
263 kContext = 10 // Context | |
264 }; | 263 }; |
265 | 264 |
266 /** Returns node type (see HeapGraphNode::Type). */ | 265 /** Returns node type (see HeapGraphNode::Type). */ |
267 Type GetType() const; | 266 Type GetType() const; |
268 | 267 |
269 /** | 268 /** |
270 * Returns node name. Depending on node's type this can be the name | 269 * Returns node name. Depending on node's type this can be the name |
271 * of the constructor (for objects), the name of the function (for | 270 * of the constructor (for objects), the name of the function (for |
272 * closures), string value, or an empty string (for compiled code). | 271 * closures), string value, or an empty string (for compiled code). |
273 */ | 272 */ |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 }; | 571 }; |
573 | 572 |
574 | 573 |
575 } // namespace v8 | 574 } // namespace v8 |
576 | 575 |
577 | 576 |
578 #undef V8EXPORT | 577 #undef V8EXPORT |
579 | 578 |
580 | 579 |
581 #endif // V8_V8_PROFILER_H_ | 580 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |