Lines Matching refs:art
42 class Tracer final : public art::instrumentation::InstrumentationListener {
46 void MethodEntered(art::Thread* thread ATTRIBUTE_UNUSED, in MethodEntered()
47 art::ArtMethod* method ATTRIBUTE_UNUSED) override in MethodEntered()
48 REQUIRES_SHARED(art::Locks::mutator_lock_) {} in MethodEntered()
50 void MethodExited(art::Thread* thread ATTRIBUTE_UNUSED, in MethodExited()
51 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodExited()
52 art::instrumentation::OptionalFrame frame ATTRIBUTE_UNUSED, in MethodExited()
53 art::MutableHandle<art::mirror::Object>& return_value ATTRIBUTE_UNUSED) in MethodExited()
54 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodExited()
56 void MethodExited(art::Thread* thread ATTRIBUTE_UNUSED, in MethodExited()
57 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodExited()
58 art::instrumentation::OptionalFrame frame ATTRIBUTE_UNUSED, in MethodExited()
59 art::JValue& return_value ATTRIBUTE_UNUSED) in MethodExited()
60 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodExited()
62 void MethodUnwind(art::Thread* thread ATTRIBUTE_UNUSED, in MethodUnwind()
63 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodUnwind()
64 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodUnwind()
66 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodUnwind()
68 void DexPcMoved(art::Thread* thread ATTRIBUTE_UNUSED, in DexPcMoved()
69 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in DexPcMoved()
70 art::ArtMethod* method ATTRIBUTE_UNUSED, in DexPcMoved()
72 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in DexPcMoved()
74 void FieldRead(art::Thread* thread ATTRIBUTE_UNUSED, in FieldRead()
75 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in FieldRead()
76 art::ArtMethod* method ATTRIBUTE_UNUSED, in FieldRead()
78 art::ArtField* field ATTRIBUTE_UNUSED) in FieldRead()
79 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in FieldRead()
81 void FieldWritten(art::Thread* thread ATTRIBUTE_UNUSED, in FieldWritten()
82 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in FieldWritten()
83 art::ArtMethod* method ATTRIBUTE_UNUSED, in FieldWritten()
85 art::ArtField* field ATTRIBUTE_UNUSED, in FieldWritten()
86 art::Handle<art::mirror::Object> field_value ATTRIBUTE_UNUSED) in FieldWritten()
87 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in FieldWritten()
89 void FieldWritten(art::Thread* thread ATTRIBUTE_UNUSED, in FieldWritten()
90 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in FieldWritten()
91 art::ArtMethod* method ATTRIBUTE_UNUSED, in FieldWritten()
93 art::ArtField* field ATTRIBUTE_UNUSED, in FieldWritten()
94 const art::JValue& field_value ATTRIBUTE_UNUSED) in FieldWritten()
95 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in FieldWritten()
97 void ExceptionThrown(art::Thread* thread ATTRIBUTE_UNUSED, in ExceptionThrown()
98 art::Handle<art::mirror::Throwable> exception_object ATTRIBUTE_UNUSED) in ExceptionThrown()
99 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in ExceptionThrown()
101 void ExceptionHandled(art::Thread* self ATTRIBUTE_UNUSED, in ExceptionHandled()
102 art::Handle<art::mirror::Throwable> throwable ATTRIBUTE_UNUSED) in ExceptionHandled()
103 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in ExceptionHandled()
105 void Branch(art::Thread* thread ATTRIBUTE_UNUSED, in Branch()
106 art::ArtMethod* method ATTRIBUTE_UNUSED, in Branch()
109 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in Branch()
111 void WatchedFramePop(art::Thread* thread ATTRIBUTE_UNUSED, in WatchedFramePop()
112 const art::ShadowFrame& frame ATTRIBUTE_UNUSED) in WatchedFramePop()
113 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in WatchedFramePop()
121 static void StartTracing() REQUIRES(!art::Locks::mutator_lock_, in StartTracing()
122 !art::Locks::thread_list_lock_, in StartTracing()
123 !art::Locks::thread_suspend_count_lock_) { in StartTracing()
124 art::Thread* self = art::Thread::Current(); in StartTracing()
125 art::Runtime* runtime = art::Runtime::Current(); in StartTracing()
126 art::gc::ScopedGCCriticalSection gcs(self, in StartTracing()
127 art::gc::kGcCauseInstrumentation, in StartTracing()
128 art::gc::kCollectorTypeInstrumentation); in StartTracing()
129 art::ScopedSuspendAll ssa("starting fast tracing"); in StartTracing()
131 art::instrumentation::Instrumentation::kMethodEntered | in StartTracing()
132 art::instrumentation::Instrumentation::kMethodExited | in StartTracing()
133 art::instrumentation::Instrumentation::kMethodUnwind); in StartTracing()
137 class TraceFastPhaseCB : public art::RuntimePhaseCallback {
141 void NextRuntimePhase(art::RuntimePhaseCallback::RuntimePhase phase) in NextRuntimePhase()
142 override REQUIRES_SHARED(art::Locks::mutator_lock_) { in NextRuntimePhase()
143 if (phase == art::RuntimePhaseCallback::RuntimePhase::kInit) { in NextRuntimePhase()
144 art::ScopedThreadSuspension sts(art::Thread::Current(), in NextRuntimePhase()
145 art::ThreadState::kWaitingForMethodTracingStart); in NextRuntimePhase()
154 art::Runtime* runtime = art::Runtime::Current(); in ArtPlugin_Initialize()
155 art::ScopedThreadStateChange stsc(art::Thread::Current(), in ArtPlugin_Initialize()
156 art::ThreadState::kWaitingForMethodTracingStart); in ArtPlugin_Initialize()
157 art::ScopedSuspendAll ssa("Add phase callback"); in ArtPlugin_Initialize()