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

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: Comment addressed 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') | no next file with comments »
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 */ 185 */
186 const CpuProfile* StopCpuProfiling(Handle<String> title); 186 const CpuProfile* StopCpuProfiling(Handle<String> title);
187 187
188 /** 188 /**
189 * Deletes all existing profiles, also cancelling all profiling 189 * Deletes all existing profiles, also cancelling all profiling
190 * activity. All previously returned pointers to profiles and their 190 * activity. All previously returned pointers to profiles and their
191 * contents become invalid after this call. 191 * contents become invalid after this call.
192 */ 192 */
193 void DeleteAllCpuProfiles(); 193 void DeleteAllCpuProfiles();
194 194
195 /**
196 * Tells the profiler whether the embedder is idle.
197 */
198 void SetIdle(bool is_idle);
199
195 private: 200 private:
196 CpuProfiler(); 201 CpuProfiler();
197 ~CpuProfiler(); 202 ~CpuProfiler();
198 CpuProfiler(const CpuProfiler&); 203 CpuProfiler(const CpuProfiler&);
199 CpuProfiler& operator=(const CpuProfiler&); 204 CpuProfiler& operator=(const CpuProfiler&);
200 }; 205 };
201 206
202 207
203 class HeapGraphNode; 208 class HeapGraphNode;
204 209
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 uint32_t index; // Index of the time interval that was changed. 568 uint32_t index; // Index of the time interval that was changed.
564 uint32_t count; // New value of count field for the interval with this index. 569 uint32_t count; // New value of count field for the interval with this index.
565 uint32_t size; // New value of size field for the interval with this index. 570 uint32_t size; // New value of size field for the interval with this index.
566 }; 571 };
567 572
568 573
569 } // namespace v8 574 } // namespace v8
570 575
571 576
572 #endif // V8_V8_PROFILER_H_ 577 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698