Lines Matching refs:art

41 class Tracer final : public art::instrumentation::InstrumentationListener {
45 void MethodEntered(art::Thread* thread ATTRIBUTE_UNUSED, in MethodEntered()
46 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodEntered()
47 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodEntered()
49 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodEntered()
51 void MethodExited(art::Thread* thread ATTRIBUTE_UNUSED, in MethodExited()
52 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodExited()
53 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodExited()
55 art::Handle<art::mirror::Object> return_value ATTRIBUTE_UNUSED) in MethodExited()
56 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodExited()
58 void MethodExited(art::Thread* thread ATTRIBUTE_UNUSED, in MethodExited()
59 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodExited()
60 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodExited()
62 const art::JValue& return_value ATTRIBUTE_UNUSED) in MethodExited()
63 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodExited()
65 void MethodUnwind(art::Thread* thread ATTRIBUTE_UNUSED, in MethodUnwind()
66 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in MethodUnwind()
67 art::ArtMethod* method ATTRIBUTE_UNUSED, in MethodUnwind()
69 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in MethodUnwind()
71 void DexPcMoved(art::Thread* thread ATTRIBUTE_UNUSED, in DexPcMoved()
72 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in DexPcMoved()
73 art::ArtMethod* method ATTRIBUTE_UNUSED, in DexPcMoved()
75 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in DexPcMoved()
77 void FieldRead(art::Thread* thread ATTRIBUTE_UNUSED, in FieldRead()
78 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in FieldRead()
79 art::ArtMethod* method ATTRIBUTE_UNUSED, in FieldRead()
81 art::ArtField* field ATTRIBUTE_UNUSED) in FieldRead()
82 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in FieldRead()
84 void FieldWritten(art::Thread* thread ATTRIBUTE_UNUSED, in FieldWritten()
85 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in FieldWritten()
86 art::ArtMethod* method ATTRIBUTE_UNUSED, in FieldWritten()
88 art::ArtField* field ATTRIBUTE_UNUSED, in FieldWritten()
89 art::Handle<art::mirror::Object> field_value ATTRIBUTE_UNUSED) in FieldWritten()
90 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in FieldWritten()
92 void FieldWritten(art::Thread* thread ATTRIBUTE_UNUSED, in FieldWritten()
93 art::Handle<art::mirror::Object> this_object ATTRIBUTE_UNUSED, in FieldWritten()
94 art::ArtMethod* method ATTRIBUTE_UNUSED, in FieldWritten()
96 art::ArtField* field ATTRIBUTE_UNUSED, in FieldWritten()
97 const art::JValue& field_value ATTRIBUTE_UNUSED) in FieldWritten()
98 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in FieldWritten()
100 void ExceptionThrown(art::Thread* thread ATTRIBUTE_UNUSED, in ExceptionThrown()
101 art::Handle<art::mirror::Throwable> exception_object ATTRIBUTE_UNUSED) in ExceptionThrown()
102 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in ExceptionThrown()
104 void ExceptionHandled(art::Thread* self ATTRIBUTE_UNUSED, in ExceptionHandled()
105 art::Handle<art::mirror::Throwable> throwable ATTRIBUTE_UNUSED) in ExceptionHandled()
106 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in ExceptionHandled()
108 void Branch(art::Thread* thread ATTRIBUTE_UNUSED, in Branch()
109 art::ArtMethod* method ATTRIBUTE_UNUSED, in Branch()
112 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in Branch()
114 void WatchedFramePop(art::Thread* thread ATTRIBUTE_UNUSED, in WatchedFramePop()
115 const art::ShadowFrame& frame ATTRIBUTE_UNUSED) in WatchedFramePop()
116 override REQUIRES_SHARED(art::Locks::mutator_lock_) { } in WatchedFramePop()
124 static void StartTracing() REQUIRES(!art::Locks::mutator_lock_, in StartTracing()
125 !art::Locks::thread_list_lock_, in StartTracing()
126 !art::Locks::thread_suspend_count_lock_) { in StartTracing()
127 art::Thread* self = art::Thread::Current(); in StartTracing()
128 art::Runtime* runtime = art::Runtime::Current(); in StartTracing()
129 art::gc::ScopedGCCriticalSection gcs(self, in StartTracing()
130 art::gc::kGcCauseInstrumentation, in StartTracing()
131 art::gc::kCollectorTypeInstrumentation); in StartTracing()
132 art::ScopedSuspendAll ssa("starting fast tracing"); in StartTracing()
134 art::instrumentation::Instrumentation::kMethodEntered | in StartTracing()
135 art::instrumentation::Instrumentation::kMethodExited | in StartTracing()
136 art::instrumentation::Instrumentation::kMethodUnwind); in StartTracing()
140 class TraceFastPhaseCB : public art::RuntimePhaseCallback {
144 void NextRuntimePhase(art::RuntimePhaseCallback::RuntimePhase phase) in NextRuntimePhase()
145 override REQUIRES_SHARED(art::Locks::mutator_lock_) { in NextRuntimePhase()
146 if (phase == art::RuntimePhaseCallback::RuntimePhase::kInit) { in NextRuntimePhase()
147 art::ScopedThreadSuspension sts(art::Thread::Current(), in NextRuntimePhase()
148 art::ThreadState::kWaitingForMethodTracingStart); in NextRuntimePhase()
156 extern "C" bool ArtPlugin_Initialize() REQUIRES_SHARED(art::Locks::mutator_lock_) { in ArtPlugin_Initialize()
157 art::Runtime* runtime = art::Runtime::Current(); in ArtPlugin_Initialize()
158 art::ScopedThreadSuspension stsc(art::Thread::Current(), in ArtPlugin_Initialize()
159 art::ThreadState::kWaitingForMethodTracingStart); in ArtPlugin_Initialize()
160 art::ScopedSuspendAll ssa("Add phase callback"); in ArtPlugin_Initialize()