Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: include/v8-profiler.h

Issue 22412003: Support idle time in CPU profiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698