| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 const HeapGraphNode* GetToNode() const; | 239 const HeapGraphNode* GetToNode() const; |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 | 242 |
| 243 /** | 243 /** |
| 244 * HeapGraphNode represents a node in a heap graph. | 244 * HeapGraphNode represents a node in a heap graph. |
| 245 */ | 245 */ |
| 246 class V8_EXPORT HeapGraphNode { | 246 class V8_EXPORT HeapGraphNode { |
| 247 public: | 247 public: |
| 248 enum Type { | 248 enum Type { |
| 249 kHidden = 0, // Hidden node, may be filtered when shown to user. | 249 kHidden = 0, // Hidden node, may be filtered when shown to user. |
| 250 kArray = 1, // An array of elements. | 250 kArray = 1, // An array of elements. |
| 251 kString = 2, // A string. | 251 kString = 2, // A string. |
| 252 kObject = 3, // A JS object (except for arrays and strings). | 252 kObject = 3, // A JS object (except for arrays and strings). |
| 253 kCode = 4, // Compiled code. | 253 kCode = 4, // Compiled code. |
| 254 kClosure = 5, // Function closure. | 254 kClosure = 5, // Function closure. |
| 255 kRegExp = 6, // RegExp. | 255 kRegExp = 6, // RegExp. |
| 256 kHeapNumber = 7, // Number stored in the heap. | 256 kHeapNumber = 7, // Number stored in the heap. |
| 257 kNative = 8, // Native object (not from V8 heap). | 257 kNative = 8, // Native object (not from V8 heap). |
| 258 kSynthetic = 9 // Synthetic object, usualy used for grouping | 258 kSynthetic = 9, // Synthetic object, usualy used for grouping |
| 259 // snapshot items together. | 259 // snapshot items together. |
| 260 kConsString = 10, // Concatenated string. A pair of pointers to strings. |
| 261 kSlicedString = 11 // Sliced string. A fragment of another string. |
| 260 }; | 262 }; |
| 261 | 263 |
| 262 /** Returns node type (see HeapGraphNode::Type). */ | 264 /** Returns node type (see HeapGraphNode::Type). */ |
| 263 Type GetType() const; | 265 Type GetType() const; |
| 264 | 266 |
| 265 /** | 267 /** |
| 266 * Returns node name. Depending on node's type this can be the name | 268 * Returns node name. Depending on node's type this can be the name |
| 267 * of the constructor (for objects), the name of the function (for | 269 * of the constructor (for objects), the name of the function (for |
| 268 * closures), string value, or an empty string (for compiled code). | 270 * closures), string value, or an empty string (for compiled code). |
| 269 */ | 271 */ |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 uint32_t index; // Index of the time interval that was changed. | 565 uint32_t index; // Index of the time interval that was changed. |
| 564 uint32_t count; // New value of count field for the interval with this index. | 566 uint32_t count; // New value of count field for the interval with this index. |
| 565 uint32_t size; // New value of size field for the interval with this index. | 567 uint32_t size; // New value of size field for the interval with this index. |
| 566 }; | 568 }; |
| 567 | 569 |
| 568 | 570 |
| 569 } // namespace v8 | 571 } // namespace v8 |
| 570 | 572 |
| 571 | 573 |
| 572 #endif // V8_V8_PROFILER_H_ | 574 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |