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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 */ | 142 */ |
143 int GetSamplesCount() const; | 143 int GetSamplesCount() const; |
144 | 144 |
145 /** | 145 /** |
146 * Returns profile node corresponding to the top frame the sample at | 146 * Returns profile node corresponding to the top frame the sample at |
147 * the given index. | 147 * the given index. |
148 */ | 148 */ |
149 const CpuProfileNode* GetSample(int index) const; | 149 const CpuProfileNode* GetSample(int index) const; |
150 | 150 |
151 /** | 151 /** |
152 * Returns time when the profile recording started (in microseconds | 152 * Returns time when the profile recording started (in milliseconds |
153 * since the Epoch). | 153 * since the Epoch). |
154 */ | 154 */ |
155 int64_t GetStartTime() const; | 155 double GetStartTime() const; |
156 | 156 |
157 /** | 157 /** |
158 * Returns time when the profile recording was stopped (in microseconds | 158 * Returns time when the profile recording was stopped (in milliseconds |
159 * since the Epoch). | 159 * since the Epoch). |
160 */ | 160 */ |
161 int64_t GetEndTime() const; | 161 double GetEndTime() const; |
162 | 162 |
163 /** | 163 /** |
164 * Deletes the profile and removes it from CpuProfiler's list. | 164 * Deletes the profile and removes it from CpuProfiler's list. |
165 * All pointers to nodes previously returned become invalid. | 165 * All pointers to nodes previously returned become invalid. |
166 * Profiles with the same uid but obtained using different | 166 * Profiles with the same uid but obtained using different |
167 * security token are not deleted, but become inaccessible | 167 * security token are not deleted, but become inaccessible |
168 * using FindProfile method. It is embedder's responsibility | 168 * using FindProfile method. It is embedder's responsibility |
169 * to call Delete on these profiles. | 169 * to call Delete on these profiles. |
170 */ | 170 */ |
171 void Delete(); | 171 void Delete(); |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 }; | 596 }; |
597 | 597 |
598 | 598 |
599 } // namespace v8 | 599 } // namespace v8 |
600 | 600 |
601 | 601 |
602 #undef V8EXPORT | 602 #undef V8EXPORT |
603 | 603 |
604 | 604 |
605 #endif // V8_V8_PROFILER_H_ | 605 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |