Chromium Code Reviews| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 248 public: | 248 public: |
| 249 enum Type { | 249 enum Type { |
| 250 kHidden = 0, // Hidden node, may be filtered when shown to user. | 250 kHidden = 0, // Hidden node, may be filtered when shown to user. |
| 251 kArray = 1, // An array of elements. | 251 kArray = 1, // An array of elements. |
| 252 kString = 2, // A string. | 252 kString = 2, // A string. |
| 253 kObject = 3, // A JS object (except for arrays and strings). | 253 kObject = 3, // A JS object (except for arrays and strings). |
| 254 kCode = 4, // Compiled code. | 254 kCode = 4, // Compiled code. |
| 255 kClosure = 5, // Function closure. | 255 kClosure = 5, // Function closure. |
| 256 kRegExp = 6, // RegExp. | 256 kRegExp = 6, // RegExp. |
| 257 kHeapNumber = 7, // Number stored in the heap. | 257 kHeapNumber = 7, // Number stored in the heap. |
| 258 kNative = 8 // Native object (not from V8 heap). | 258 kNative = 8, // Native object (not from V8 heap). |
| 259 kArtificial = 9 // Artificial object, usualy used for grouping | |
|
mnaganov (inactive)
2012/02/06 15:37:22
Agreed offline to renamed this to kSynthetic. And
| |
| 260 // snapshot items together for reducing | |
| 261 // postprocessing steps. | |
| 262 // example - group of detached DOM trees. | |
| 259 }; | 263 }; |
| 260 | 264 |
| 261 /** Returns node type (see HeapGraphNode::Type). */ | 265 /** Returns node type (see HeapGraphNode::Type). */ |
| 262 Type GetType() const; | 266 Type GetType() const; |
| 263 | 267 |
| 264 /** | 268 /** |
| 265 * 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 |
| 266 * of the constructor (for objects), the name of the function (for | 270 * of the constructor (for objects), the name of the function (for |
| 267 * closures), string value, or an empty string (for compiled code). | 271 * closures), string value, or an empty string (for compiled code). |
| 268 */ | 272 */ |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 511 }; | 515 }; |
| 512 | 516 |
| 513 | 517 |
| 514 } // namespace v8 | 518 } // namespace v8 |
| 515 | 519 |
| 516 | 520 |
| 517 #undef V8EXPORT | 521 #undef V8EXPORT |
| 518 | 522 |
| 519 | 523 |
| 520 #endif // V8_V8_PROFILER_H_ | 524 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |