| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 * title are silently ignored. While collecting a profile, functions | 157 * title are silently ignored. While collecting a profile, functions |
| 158 * from all security contexts are included in it. The token-based | 158 * from all security contexts are included in it. The token-based |
| 159 * filtering is only performed when querying for a profile. | 159 * filtering is only performed when querying for a profile. |
| 160 * | 160 * |
| 161 * |record_samples| parameter controls whether individual samples should | 161 * |record_samples| parameter controls whether individual samples should |
| 162 * be recorded in addition to the aggregated tree. | 162 * be recorded in addition to the aggregated tree. |
| 163 */ | 163 */ |
| 164 void StartProfiling(Handle<String> title, bool record_samples = false); | 164 void StartProfiling(Handle<String> title, bool record_samples = false); |
| 165 | 165 |
| 166 /** Deprecated. Use StartProfiling instead. */ | 166 /** Deprecated. Use StartProfiling instead. */ |
| 167 void StartCpuProfiling(Handle<String> title, bool record_samples = false); | 167 V8_DEPRECATED("Use StartProfiling", |
| 168 void StartCpuProfiling(Handle<String> title, |
| 169 bool record_samples = false)); |
| 168 | 170 |
| 169 /** | 171 /** |
| 170 * Stops collecting CPU profile with a given title and returns it. | 172 * Stops collecting CPU profile with a given title and returns it. |
| 171 * If the title given is empty, finishes the last profile started. | 173 * If the title given is empty, finishes the last profile started. |
| 172 */ | 174 */ |
| 173 CpuProfile* StopProfiling(Handle<String> title); | 175 CpuProfile* StopProfiling(Handle<String> title); |
| 174 | 176 |
| 175 /** Deprecated. Use StopProfiling instead. */ | 177 /** Deprecated. Use StopProfiling instead. */ |
| 176 const CpuProfile* StopCpuProfiling(Handle<String> title); | 178 V8_DEPRECATED("Use StopProfiling", |
| 179 const CpuProfile* StopCpuProfiling(Handle<String> title)); |
| 177 | 180 |
| 178 /** | 181 /** |
| 179 * Tells the profiler whether the embedder is idle. | 182 * Tells the profiler whether the embedder is idle. |
| 180 */ | 183 */ |
| 181 void SetIdle(bool is_idle); | 184 void SetIdle(bool is_idle); |
| 182 | 185 |
| 183 private: | 186 private: |
| 184 CpuProfiler(); | 187 CpuProfiler(); |
| 185 ~CpuProfiler(); | 188 ~CpuProfiler(); |
| 186 CpuProfiler(const CpuProfiler&); | 189 CpuProfiler(const CpuProfiler&); |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 uint32_t index; // Index of the time interval that was changed. | 616 uint32_t index; // Index of the time interval that was changed. |
| 614 uint32_t count; // New value of count field for the interval with this index. | 617 uint32_t count; // New value of count field for the interval with this index. |
| 615 uint32_t size; // New value of size field for the interval with this index. | 618 uint32_t size; // New value of size field for the interval with this index. |
| 616 }; | 619 }; |
| 617 | 620 |
| 618 | 621 |
| 619 } // namespace v8 | 622 } // namespace v8 |
| 620 | 623 |
| 621 | 624 |
| 622 #endif // V8_V8_PROFILER_H_ | 625 #endif // V8_V8_PROFILER_H_ |
| OLD | NEW |