OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_PROFILER_LISTENER_H_ | 5 #ifndef V8_PROFILER_PROFILER_LISTENER_H_ |
6 #define V8_PROFILER_PROFILER_LISTENER_H_ | 6 #define V8_PROFILER_PROFILER_LISTENER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/code-events.h" | 10 #include "src/code-events.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 Name* script_name) override; | 36 Name* script_name) override; |
37 void CodeCreateEvent(CodeEventListener::LogEventsAndTags tag, | 37 void CodeCreateEvent(CodeEventListener::LogEventsAndTags tag, |
38 AbstractCode* code, SharedFunctionInfo* shared, | 38 AbstractCode* code, SharedFunctionInfo* shared, |
39 Name* script_name, int line, int column) override; | 39 Name* script_name, int line, int column) override; |
40 void CodeCreateEvent(CodeEventListener::LogEventsAndTags tag, | 40 void CodeCreateEvent(CodeEventListener::LogEventsAndTags tag, |
41 AbstractCode* code, int args_count) override; | 41 AbstractCode* code, int args_count) override; |
42 void CodeMovingGCEvent() override {} | 42 void CodeMovingGCEvent() override {} |
43 void CodeMoveEvent(AbstractCode* from, Address to) override; | 43 void CodeMoveEvent(AbstractCode* from, Address to) override; |
44 void CodeDisableOptEvent(AbstractCode* code, | 44 void CodeDisableOptEvent(AbstractCode* code, |
45 SharedFunctionInfo* shared) override; | 45 SharedFunctionInfo* shared) override; |
46 void CodeDeoptEvent(Code* code, Address pc, int fp_to_sp_delta) override; | 46 void CodeDeoptEvent(DeoptKind kind, Code* code, Address pc, |
| 47 int fp_to_sp_delta) override; |
47 void GetterCallbackEvent(Name* name, Address entry_point) override; | 48 void GetterCallbackEvent(Name* name, Address entry_point) override; |
48 void RegExpCodeCreateEvent(AbstractCode* code, String* source) override; | 49 void RegExpCodeCreateEvent(AbstractCode* code, String* source) override; |
49 void SetterCallbackEvent(Name* name, Address entry_point) override; | 50 void SetterCallbackEvent(Name* name, Address entry_point) override; |
50 void SharedFunctionInfoMoveEvent(Address from, Address to) override {} | 51 void SharedFunctionInfoMoveEvent(Address from, Address to) override {} |
51 | 52 |
52 CodeEntry* NewCodeEntry( | 53 CodeEntry* NewCodeEntry( |
53 CodeEventListener::LogEventsAndTags tag, const char* name, | 54 CodeEventListener::LogEventsAndTags tag, const char* name, |
54 const char* name_prefix = CodeEntry::kEmptyNamePrefix, | 55 const char* name_prefix = CodeEntry::kEmptyNamePrefix, |
55 const char* resource_name = CodeEntry::kEmptyResourceName, | 56 const char* resource_name = CodeEntry::kEmptyResourceName, |
56 int line_number = v8::CpuProfileNode::kNoLineNumberInfo, | 57 int line_number = v8::CpuProfileNode::kNoLineNumberInfo, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 std::vector<CodeEventObserver*> observers_; | 91 std::vector<CodeEventObserver*> observers_; |
91 base::Mutex mutex_; | 92 base::Mutex mutex_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(ProfilerListener); | 94 DISALLOW_COPY_AND_ASSIGN(ProfilerListener); |
94 }; | 95 }; |
95 | 96 |
96 } // namespace internal | 97 } // namespace internal |
97 } // namespace v8 | 98 } // namespace v8 |
98 | 99 |
99 #endif // V8_PROFILER_PROFILER_LISTENER_H_ | 100 #endif // V8_PROFILER_PROFILER_LISTENER_H_ |
OLD | NEW |