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

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

Issue 197873015: StopCpuProfiling should return non-const CpuProfile (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 * Starts collecting CPU profile. Title may be an empty string. It 151 * Starts collecting CPU profile. Title may be an empty string. It
152 * is allowed to have several profiles being collected at 152 * is allowed to have several profiles being collected at
153 * once. Attempts to start collecting several profiles with the same 153 * once. Attempts to start collecting several profiles with the same
154 * title are silently ignored. While collecting a profile, functions 154 * title are silently ignored. While collecting a profile, functions
155 * from all security contexts are included in it. The token-based 155 * from all security contexts are included in it. The token-based
156 * filtering is only performed when querying for a profile. 156 * filtering is only performed when querying for a profile.
157 * 157 *
158 * |record_samples| parameter controls whether individual samples should 158 * |record_samples| parameter controls whether individual samples should
159 * be recorded in addition to the aggregated tree. 159 * be recorded in addition to the aggregated tree.
160 */ 160 */
161 void StartProfiling(Handle<String> title, bool record_samples = false);
162
163 /** Deprecated. Use StartProfiling instead. */
161 void StartCpuProfiling(Handle<String> title, bool record_samples = false); 164 void StartCpuProfiling(Handle<String> title, bool record_samples = false);
162 165
163 /** 166 /**
164 * Stops collecting CPU profile with a given title and returns it. 167 * Stops collecting CPU profile with a given title and returns it.
165 * If the title given is empty, finishes the last profile started. 168 * If the title given is empty, finishes the last profile started.
166 */ 169 */
170 CpuProfile* StopProfiling(Handle<String> title);
171
172 /** Deprecated. Use StopProfiling instead. */
167 const CpuProfile* StopCpuProfiling(Handle<String> title); 173 const CpuProfile* StopCpuProfiling(Handle<String> title);
168 174
169 /** 175 /**
170 * Tells the profiler whether the embedder is idle. 176 * Tells the profiler whether the embedder is idle.
171 */ 177 */
172 void SetIdle(bool is_idle); 178 void SetIdle(bool is_idle);
173 179
174 private: 180 private:
175 CpuProfiler(); 181 CpuProfiler();
176 ~CpuProfiler(); 182 ~CpuProfiler();
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 uint32_t index; // Index of the time interval that was changed. 565 uint32_t index; // Index of the time interval that was changed.
560 uint32_t count; // New value of count field for the interval with this index. 566 uint32_t count; // New value of count field for the interval with this index.
561 uint32_t size; // New value of size field for the interval with this index. 567 uint32_t size; // New value of size field for the interval with this index.
562 }; 568 };
563 569
564 570
565 } // namespace v8 571 } // namespace v8
566 572
567 573
568 #endif // V8_V8_PROFILER_H_ 574 #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