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 <unordered_set> | 8 #include <unordered_set> |
9 #include <vector> | 9 #include <vector> |
10 #include "v8.h" // NOLINT(build/include) | 10 #include "v8.h" // NOLINT(build/include) |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 kObject = 3, // A JS object (except for arrays and strings). | 386 kObject = 3, // A JS object (except for arrays and strings). |
387 kCode = 4, // Compiled code. | 387 kCode = 4, // Compiled code. |
388 kClosure = 5, // Function closure. | 388 kClosure = 5, // Function closure. |
389 kRegExp = 6, // RegExp. | 389 kRegExp = 6, // RegExp. |
390 kHeapNumber = 7, // Number stored in the heap. | 390 kHeapNumber = 7, // Number stored in the heap. |
391 kNative = 8, // Native object (not from V8 heap). | 391 kNative = 8, // Native object (not from V8 heap). |
392 kSynthetic = 9, // Synthetic object, usualy used for grouping | 392 kSynthetic = 9, // Synthetic object, usualy used for grouping |
393 // snapshot items together. | 393 // snapshot items together. |
394 kConsString = 10, // Concatenated string. A pair of pointers to strings. | 394 kConsString = 10, // Concatenated string. A pair of pointers to strings. |
395 kSlicedString = 11, // Sliced string. A fragment of another string. | 395 kSlicedString = 11, // Sliced string. A fragment of another string. |
396 kSymbol = 12, // A Symbol (ES6). | 396 kSymbol = 12 // A Symbol (ES6). |
397 kSimdValue = 13 // A SIMD value stored in the heap (Proposed ES7). | |
398 }; | 397 }; |
399 | 398 |
400 /** Returns node type (see HeapGraphNode::Type). */ | 399 /** Returns node type (see HeapGraphNode::Type). */ |
401 Type GetType() const; | 400 Type GetType() const; |
402 | 401 |
403 /** | 402 /** |
404 * Returns node name. Depending on node's type this can be the name | 403 * Returns node name. Depending on node's type this can be the name |
405 * of the constructor (for objects), the name of the function (for | 404 * of the constructor (for objects), the name of the function (for |
406 * closures), string value, or an empty string (for compiled code). | 405 * closures), string value, or an empty string (for compiled code). |
407 */ | 406 */ |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 uint32_t index; // Index of the time interval that was changed. | 908 uint32_t index; // Index of the time interval that was changed. |
910 uint32_t count; // New value of count field for the interval with this index. | 909 uint32_t count; // New value of count field for the interval with this index. |
911 uint32_t size; // New value of size field for the interval with this index. | 910 uint32_t size; // New value of size field for the interval with this index. |
912 }; | 911 }; |
913 | 912 |
914 | 913 |
915 } // namespace v8 | 914 } // namespace v8 |
916 | 915 |
917 | 916 |
918 #endif // V8_V8_PROFILER_H_ | 917 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |