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 <vector> | 8 #include <vector> |
9 #include "v8.h" // NOLINT(build/include) | 9 #include "v8.h" // NOLINT(build/include) |
10 | 10 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 * if the optimization was disabled for it. | 130 * if the optimization was disabled for it. |
131 */ | 131 */ |
132 const char* GetBailoutReason() const; | 132 const char* GetBailoutReason() const; |
133 | 133 |
134 /** | 134 /** |
135 * Returns the count of samples where the function was currently executing. | 135 * Returns the count of samples where the function was currently executing. |
136 */ | 136 */ |
137 unsigned GetHitCount() const; | 137 unsigned GetHitCount() const; |
138 | 138 |
139 /** Returns function entry UID. */ | 139 /** Returns function entry UID. */ |
140 unsigned GetCallUid() const; | 140 V8_DEPRECATE_SOON( |
| 141 "Use GetScriptId, GetLineNumber, and GetColumnNumber instead.", |
| 142 unsigned GetCallUid() const); |
141 | 143 |
142 /** Returns id of the node. The id is unique within the tree */ | 144 /** Returns id of the node. The id is unique within the tree */ |
143 unsigned GetNodeId() const; | 145 unsigned GetNodeId() const; |
144 | 146 |
145 /** Returns child nodes count of the node. */ | 147 /** Returns child nodes count of the node. */ |
146 int GetChildrenCount() const; | 148 int GetChildrenCount() const; |
147 | 149 |
148 /** Retrieves a child node by index. */ | 150 /** Retrieves a child node by index. */ |
149 const CpuProfileNode* GetChild(int index) const; | 151 const CpuProfileNode* GetChild(int index) const; |
150 | 152 |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 uint32_t index; // Index of the time interval that was changed. | 825 uint32_t index; // Index of the time interval that was changed. |
824 uint32_t count; // New value of count field for the interval with this index. | 826 uint32_t count; // New value of count field for the interval with this index. |
825 uint32_t size; // New value of size field for the interval with this index. | 827 uint32_t size; // New value of size field for the interval with this index. |
826 }; | 828 }; |
827 | 829 |
828 | 830 |
829 } // namespace v8 | 831 } // namespace v8 |
830 | 832 |
831 | 833 |
832 #endif // V8_V8_PROFILER_H_ | 834 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |