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_CPU_PROFILER_H_ | 5 #ifndef V8_CPU_PROFILER_H_ |
6 #define V8_CPU_PROFILER_H_ | 6 #define V8_CPU_PROFILER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/base/atomicops.h" | 9 #include "src/base/atomicops.h" |
10 #include "src/base/platform/time.h" | 10 #include "src/base/platform/time.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 inline TickSample* StartTickSample(); | 214 inline TickSample* StartTickSample(); |
215 inline void FinishTickSample(); | 215 inline void FinishTickSample(); |
216 | 216 |
217 // Must be called via PROFILE macro, otherwise will crash when | 217 // Must be called via PROFILE macro, otherwise will crash when |
218 // profiling is not enabled. | 218 // profiling is not enabled. |
219 virtual void CallbackEvent(Name* name, Address entry_point); | 219 virtual void CallbackEvent(Name* name, Address entry_point); |
220 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, | 220 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, |
221 Code* code, const char* comment); | 221 Code* code, const char* comment); |
222 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, | 222 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, |
223 Code* code, Name* name); | 223 Code* code, Name* name); |
224 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, | 224 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, Code* code, |
225 Code* code, | |
226 SharedFunctionInfo* shared, | 225 SharedFunctionInfo* shared, |
227 CompilationInfo* info, | 226 CompilationInfo* info, Name* script_name); |
228 Name* name); | 227 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, Code* code, |
229 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, | |
230 Code* code, | |
231 SharedFunctionInfo* shared, | 228 SharedFunctionInfo* shared, |
232 CompilationInfo* info, | 229 CompilationInfo* info, Name* script_name, |
233 Name* source, int line, int column); | 230 int line, int column); |
234 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, | 231 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, |
235 Code* code, int args_count); | 232 Code* code, int args_count); |
236 virtual void CodeMovingGCEvent() {} | 233 virtual void CodeMovingGCEvent() {} |
237 virtual void CodeMoveEvent(Address from, Address to); | 234 virtual void CodeMoveEvent(Address from, Address to); |
238 virtual void CodeDisableOptEvent(Code* code, SharedFunctionInfo* shared); | 235 virtual void CodeDisableOptEvent(Code* code, SharedFunctionInfo* shared); |
239 virtual void CodeDeleteEvent(Address from); | 236 virtual void CodeDeleteEvent(Address from); |
240 virtual void GetterCallbackEvent(Name* name, Address entry_point); | 237 virtual void GetterCallbackEvent(Name* name, Address entry_point); |
241 virtual void RegExpCodeCreateEvent(Code* code, String* source); | 238 virtual void RegExpCodeCreateEvent(Code* code, String* source); |
242 virtual void SetterCallbackEvent(Name* name, Address entry_point); | 239 virtual void SetterCallbackEvent(Name* name, Address entry_point); |
243 virtual void SharedFunctionInfoMoveEvent(Address from, Address to); | 240 virtual void SharedFunctionInfoMoveEvent(Address from, Address to); |
(...skipping 22 matching lines...) Expand all Loading... |
266 bool saved_is_logging_; | 263 bool saved_is_logging_; |
267 bool is_profiling_; | 264 bool is_profiling_; |
268 | 265 |
269 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); | 266 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
270 }; | 267 }; |
271 | 268 |
272 } } // namespace v8::internal | 269 } } // namespace v8::internal |
273 | 270 |
274 | 271 |
275 #endif // V8_CPU_PROFILER_H_ | 272 #endif // V8_CPU_PROFILER_H_ |
OLD | NEW |