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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 */ | 215 */ |
216 const CpuProfile* StopCpuProfiling(Handle<String> title); | 216 const CpuProfile* StopCpuProfiling(Handle<String> title); |
217 | 217 |
218 /** | 218 /** |
219 * Deletes all existing profiles, also cancelling all profiling | 219 * Deletes all existing profiles, also cancelling all profiling |
220 * activity. All previously returned pointers to profiles and their | 220 * activity. All previously returned pointers to profiles and their |
221 * contents become invalid after this call. | 221 * contents become invalid after this call. |
222 */ | 222 */ |
223 void DeleteAllCpuProfiles(); | 223 void DeleteAllCpuProfiles(); |
224 | 224 |
| 225 /** |
| 226 * Tells the profiler whether the embedder is idle. |
| 227 */ |
| 228 void SetIdle(bool is_idle); |
| 229 |
225 private: | 230 private: |
226 CpuProfiler(); | 231 CpuProfiler(); |
227 ~CpuProfiler(); | 232 ~CpuProfiler(); |
228 CpuProfiler(const CpuProfiler&); | 233 CpuProfiler(const CpuProfiler&); |
229 CpuProfiler& operator=(const CpuProfiler&); | 234 CpuProfiler& operator=(const CpuProfiler&); |
230 }; | 235 }; |
231 | 236 |
232 | 237 |
233 class HeapGraphNode; | 238 class HeapGraphNode; |
234 | 239 |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 }; | 601 }; |
597 | 602 |
598 | 603 |
599 } // namespace v8 | 604 } // namespace v8 |
600 | 605 |
601 | 606 |
602 #undef V8EXPORT | 607 #undef V8EXPORT |
603 | 608 |
604 | 609 |
605 #endif // V8_V8_PROFILER_H_ | 610 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |