| 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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 | 645 |
| 646 /** | 646 /** |
| 647 * Callback function invoked to retrieve all RetainerInfos from the embedder. | 647 * Callback function invoked to retrieve all RetainerInfos from the embedder. |
| 648 */ | 648 */ |
| 649 typedef RetainerInfos (*GetRetainerInfosCallback)(v8::Isolate* isolate); | 649 typedef RetainerInfos (*GetRetainerInfosCallback)(v8::Isolate* isolate); |
| 650 | 650 |
| 651 /** | 651 /** |
| 652 * Callback function invoked for obtaining RetainedObjectInfo for | 652 * Callback function invoked for obtaining RetainedObjectInfo for |
| 653 * the given JavaScript wrapper object. It is prohibited to enter V8 | 653 * the given JavaScript wrapper object. It is prohibited to enter V8 |
| 654 * while the callback is running: only getters on the handle and | 654 * while the callback is running: only getters on the handle and |
| 655 * GetPointerFromInternalField on the objects are allowed. | 655 * GetPointerFromExternalField on the objects are allowed. |
| 656 */ | 656 */ |
| 657 typedef RetainedObjectInfo* (*WrapperInfoCallback)(uint16_t class_id, | 657 typedef RetainedObjectInfo* (*WrapperInfoCallback)(uint16_t class_id, |
| 658 Local<Value> wrapper); | 658 Local<Value> wrapper); |
| 659 | 659 |
| 660 /** Returns the number of snapshots taken. */ | 660 /** Returns the number of snapshots taken. */ |
| 661 int GetSnapshotCount(); | 661 int GetSnapshotCount(); |
| 662 | 662 |
| 663 /** Returns a snapshot by index. */ | 663 /** Returns a snapshot by index. */ |
| 664 const HeapSnapshot* GetHeapSnapshot(int index); | 664 const HeapSnapshot* GetHeapSnapshot(int index); |
| 665 | 665 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 uint32_t index; // Index of the time interval that was changed. | 903 uint32_t index; // Index of the time interval that was changed. |
| 904 uint32_t count; // New value of count field for the interval with this index. | 904 uint32_t count; // New value of count field for the interval with this index. |
| 905 uint32_t size; // New value of size field for the interval with this index. | 905 uint32_t size; // New value of size field for the interval with this index. |
| 906 }; | 906 }; |
| 907 | 907 |
| 908 | 908 |
| 909 } // namespace v8 | 909 } // namespace v8 |
| 910 | 910 |
| 911 | 911 |
| 912 #endif // V8_V8_PROFILER_H_ | 912 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |