OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_PROFILER_CPU_PROFILER_H_ | 5 #ifndef V8_PROFILER_CPU_PROFILER_H_ |
6 #define V8_PROFILER_CPU_PROFILER_H_ | 6 #define V8_PROFILER_CPU_PROFILER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/atomic-utils.h" | 9 #include "src/atomic-utils.h" |
10 #include "src/base/atomicops.h" | 10 #include "src/base/atomicops.h" |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 inline void FinishTickSample(); | 219 inline void FinishTickSample(); |
220 | 220 |
221 // Must be called via PROFILE macro, otherwise will crash when | 221 // Must be called via PROFILE macro, otherwise will crash when |
222 // profiling is not enabled. | 222 // profiling is not enabled. |
223 void CallbackEvent(Name* name, Address entry_point) override; | 223 void CallbackEvent(Name* name, Address entry_point) override; |
224 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, | 224 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, |
225 const char* comment) override; | 225 const char* comment) override; |
226 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, | 226 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, |
227 Name* name) override; | 227 Name* name) override; |
228 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, | 228 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, |
229 SharedFunctionInfo* shared, CompilationInfo* info, | 229 SharedFunctionInfo* shared, Name* script_name) override; |
230 Name* script_name) override; | |
231 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, | 230 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, |
232 SharedFunctionInfo* shared, CompilationInfo* info, | 231 SharedFunctionInfo* shared, CompilationInfo* info, |
233 Name* script_name, int line, int column) override; | 232 Name* script_name, int line, int column) override; |
234 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, | 233 void CodeCreateEvent(Logger::LogEventsAndTags tag, AbstractCode* code, |
235 int args_count) override; | 234 int args_count) override; |
236 void CodeMovingGCEvent() override {} | 235 void CodeMovingGCEvent() override {} |
237 void CodeMoveEvent(AbstractCode* from, Address to) override; | 236 void CodeMoveEvent(AbstractCode* from, Address to) override; |
238 void CodeDisableOptEvent(AbstractCode* code, | 237 void CodeDisableOptEvent(AbstractCode* code, |
239 SharedFunctionInfo* shared) override; | 238 SharedFunctionInfo* shared) override; |
240 void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta); | 239 void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta); |
(...skipping 29 matching lines...) Expand all Loading... |
270 bool is_profiling_; | 269 bool is_profiling_; |
271 | 270 |
272 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); | 271 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
273 }; | 272 }; |
274 | 273 |
275 } // namespace internal | 274 } // namespace internal |
276 } // namespace v8 | 275 } // namespace v8 |
277 | 276 |
278 | 277 |
279 #endif // V8_PROFILER_CPU_PROFILER_H_ | 278 #endif // V8_PROFILER_CPU_PROFILER_H_ |
OLD | NEW |