| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 SharedFunctionInfo* shared, | 229 SharedFunctionInfo* shared, |
| 230 CompilationInfo* info, Name* script_name, | 230 CompilationInfo* info, Name* script_name, |
| 231 int line, int column); | 231 int line, int column); |
| 232 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, | 232 virtual void CodeCreateEvent(Logger::LogEventsAndTags tag, |
| 233 Code* code, int args_count); | 233 Code* code, int args_count); |
| 234 virtual void CodeMovingGCEvent() {} | 234 virtual void CodeMovingGCEvent() {} |
| 235 virtual void CodeMoveEvent(Address from, Address to); | 235 virtual void CodeMoveEvent(Address from, Address to); |
| 236 virtual void CodeDisableOptEvent(Code* code, SharedFunctionInfo* shared); | 236 virtual void CodeDisableOptEvent(Code* code, SharedFunctionInfo* shared); |
| 237 virtual void CodeDeoptEvent(Code* code, int bailout_id, Address pc, | 237 virtual void CodeDeoptEvent(Code* code, int bailout_id, Address pc, |
| 238 int fp_to_sp_delta); | 238 int fp_to_sp_delta); |
| 239 virtual void CodeDeleteEvent(Address from); | |
| 240 virtual void GetterCallbackEvent(Name* name, Address entry_point); | 239 virtual void GetterCallbackEvent(Name* name, Address entry_point); |
| 241 virtual void RegExpCodeCreateEvent(Code* code, String* source); | 240 virtual void RegExpCodeCreateEvent(Code* code, String* source); |
| 242 virtual void SetterCallbackEvent(Name* name, Address entry_point); | 241 virtual void SetterCallbackEvent(Name* name, Address entry_point); |
| 243 virtual void SharedFunctionInfoMoveEvent(Address from, Address to) {} | 242 virtual void SharedFunctionInfoMoveEvent(Address from, Address to) {} |
| 244 | 243 |
| 245 INLINE(bool is_profiling() const) { return is_profiling_; } | 244 INLINE(bool is_profiling() const) { return is_profiling_; } |
| 246 bool* is_profiling_address() { | 245 bool* is_profiling_address() { |
| 247 return &is_profiling_; | 246 return &is_profiling_; |
| 248 } | 247 } |
| 249 | 248 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 266 bool saved_is_logging_; | 265 bool saved_is_logging_; |
| 267 bool is_profiling_; | 266 bool is_profiling_; |
| 268 | 267 |
| 269 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); | 268 DISALLOW_COPY_AND_ASSIGN(CpuProfiler); |
| 270 }; | 269 }; |
| 271 | 270 |
| 272 } } // namespace v8::internal | 271 } } // namespace v8::internal |
| 273 | 272 |
| 274 | 273 |
| 275 #endif // V8_CPU_PROFILER_H_ | 274 #endif // V8_CPU_PROFILER_H_ |
| OLD | NEW |