Lines Matching refs:art
42 class Tracer final : public art::instrumentation::InstrumentationListener {
46 void MethodEntered(art::Thread* thread ATTRIBUTE_UNUSED, in MethodEntered()
47 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodEntered()
48 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodEntered()
50 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodEntered()
52 void MethodExited(art::Thread* thread ATTRIBUTE_UNUSED, in MethodExited()
53 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodExited()
54 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodExited()
56 art::instrumentation::OptionalFrame frame ATTRIBUTE_UNUSED, in MethodExited()
57 art::MutableHandle<art::mirror::Object>& return_value ATTRIBUTE_UNUSED) in MethodExited()
58 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodExited()
60 void MethodExited(art::Thread* thread ATTRIBUTE_UNUSED, in MethodExited()
61 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodExited()
62 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodExited()
64 art::instrumentation::OptionalFrame frame ATTRIBUTE_UNUSED, in MethodExited()
65 art::JValue& return_value ATTRIBUTE_UNUSED) in MethodExited()
66 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodExited()
68 void MethodUnwind(art::Thread* thread ATTRIBUTE_UNUSED, in MethodUnwind()
69 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodUnwind()
70 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodUnwind()
72 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodUnwind()
74 void DexPcMoved(art::Thread* thread ATTRIBUTE_UNUSED, in DexPcMoved()
75 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in DexPcMoved()
76 art::ArtMethod* method ATTRIBUTE_UNUSED, in DexPcMoved()
78 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in DexPcMoved()
80 void FieldRead(art::Thread* thread ATTRIBUTE_UNUSED, in FieldRead()
81 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in FieldRead()
82 art::ArtMethod* method ATTRIBUTE_UNUSED, in FieldRead()
84 art::ArtField* field ATTRIBUTE_UNUSED) in FieldRead()
85 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in FieldRead()
87 void FieldWritten(art::Thread* thread ATTRIBUTE_UNUSED, in FieldWritten()
88 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in FieldWritten()
89 art::ArtMethod* method ATTRIBUTE_UNUSED, in FieldWritten()
91 art::ArtField* field ATTRIBUTE_UNUSED, in FieldWritten()
92 art::Handle<art::mirror::Object> field_value ATTRIBUTE_UNUSED) in FieldWritten()
93 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in FieldWritten()
95 void FieldWritten(art::Thread* thread ATTRIBUTE_UNUSED, in FieldWritten()
96 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in FieldWritten()
97 art::ArtMethod* method ATTRIBUTE_UNUSED, in FieldWritten()
99 art::ArtField* field ATTRIBUTE_UNUSED, in FieldWritten()
100 const art::JValue& field_value ATTRIBUTE_UNUSED) in FieldWritten()
101 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in FieldWritten()
103 void ExceptionThrown(art::Thread* thread ATTRIBUTE_UNUSED, in ExceptionThrown()
104 art::Handle<art::mirror::Throwable> exception_object ATTRIBUTE_UNUSED) in ExceptionThrown()
105 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in ExceptionThrown()
107 void ExceptionHandled(art::Thread* self ATTRIBUTE_UNUSED, in ExceptionHandled()
108 art::Handle<art::mirror::Throwable> throwable ATTRIBUTE_UNUSED) in ExceptionHandled()
109 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in ExceptionHandled()
111 void Branch(art::Thread* thread ATTRIBUTE_UNUSED, in Branch()
112 art::ArtMethod* method ATTRIBUTE_UNUSED, in Branch()
115 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in Branch()
117 void WatchedFramePop(art::Thread* thread ATTRIBUTE_UNUSED, in WatchedFramePop()
118 const art::ShadowFrame& frame ATTRIBUTE_UNUSED) in WatchedFramePop()
119 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in WatchedFramePop()
127 static void StartTracing() REQUIRES(!art::Locks::mutator_lock_, in StartTracing()
128 !art::Locks::thread_list_lock_, in StartTracing()
129 !art::Locks::thread_suspend_count_lock_) { in StartTracing()
130 art::Thread* self = art::Thread::Current(); in StartTracing()
131 art::Runtime* runtime = art::Runtime::Current(); in StartTracing()
132 art::gc::ScopedGCCriticalSection gcs(self, in StartTracing()
133 art::gc::kGcCauseInstrumentation, in StartTracing()
134 art::gc::kCollectorTypeInstrumentation); in StartTracing()
135 art::ScopedSuspendAll ssa("starting fast tracing"); in StartTracing()
137 art::instrumentation::Instrumentation::kMethodEntered | in StartTracing()
138 art::instrumentation::Instrumentation::kMethodExited | in StartTracing()
139 art::instrumentation::Instrumentation::kMethodUnwind); in StartTracing()
143 class TraceFastPhaseCB : public art::RuntimePhaseCallback {
147 void NextRuntimePhase(art::RuntimePhaseCallback::RuntimePhase phase) in NextRuntimePhase()
148 override REQUIRES_SHARED(art::Locks::mutator_lock_) { in NextRuntimePhase()
149 if (phase == art::RuntimePhaseCallback::RuntimePhase::kInit) { in NextRuntimePhase()
150 art::ScopedThreadSuspension sts(art::Thread::Current(), in NextRuntimePhase()
151 art::ThreadState::kWaitingForMethodTracingStart); in NextRuntimePhase()
160 art::Runtime* runtime = art::Runtime::Current(); in ArtPlugin_Initialize()
161 art::ScopedThreadStateChange stsc(art::Thread::Current(), in ArtPlugin_Initialize()
162 art::ThreadState::kWaitingForMethodTracingStart); in ArtPlugin_Initialize()
163 art::ScopedSuspendAll ssa("Add phase callback"); in ArtPlugin_Initialize()