Lines Matching refs:Instrumentation

194   void CheckConfigureStubs(const char* key, Instrumentation::InstrumentationLevel level) {  in CheckConfigureStubs()
196 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in CheckConfigureStubs()
205 Instrumentation::InstrumentationLevel GetCurrentInstrumentationLevel() { in GetCurrentInstrumentationLevel()
223 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in TestEvent()
272 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in DeoptimizeMethod()
288 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in UndeoptimizeMethod()
303 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in DeoptimizeEverything()
318 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in UndeoptimizeEverything()
333 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in EnableMethodTracing()
345 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in DisableMethodTracing()
355 static bool HasEventListener(const instrumentation::Instrumentation* instr, uint32_t event_type) in HasEventListener()
358 case instrumentation::Instrumentation::kMethodEntered: in HasEventListener()
360 case instrumentation::Instrumentation::kMethodExited: in HasEventListener()
362 case instrumentation::Instrumentation::kMethodUnwind: in HasEventListener()
364 case instrumentation::Instrumentation::kDexPcMoved: in HasEventListener()
366 case instrumentation::Instrumentation::kFieldRead: in HasEventListener()
368 case instrumentation::Instrumentation::kFieldWritten: in HasEventListener()
370 case instrumentation::Instrumentation::kExceptionThrown: in HasEventListener()
372 case instrumentation::Instrumentation::kExceptionHandled: in HasEventListener()
374 case instrumentation::Instrumentation::kBranch: in HasEventListener()
376 case instrumentation::Instrumentation::kWatchedFramePop: in HasEventListener()
384 static void ReportEvent(const instrumentation::Instrumentation* instr, in ReportEvent()
394 case instrumentation::Instrumentation::kMethodEntered: in ReportEvent()
397 case instrumentation::Instrumentation::kMethodExited: { in ReportEvent()
402 case instrumentation::Instrumentation::kMethodUnwind: in ReportEvent()
405 case instrumentation::Instrumentation::kDexPcMoved: in ReportEvent()
408 case instrumentation::Instrumentation::kFieldRead: in ReportEvent()
411 case instrumentation::Instrumentation::kFieldWritten: { in ReportEvent()
416 case instrumentation::Instrumentation::kExceptionThrown: { in ReportEvent()
423 case instrumentation::Instrumentation::kBranch: in ReportEvent()
426 case instrumentation::Instrumentation::kWatchedFramePop: in ReportEvent()
429 case instrumentation::Instrumentation::kExceptionHandled: { in ReportEvent()
446 case instrumentation::Instrumentation::kMethodEntered: in DidListenerReceiveEvent()
448 case instrumentation::Instrumentation::kMethodExited: in DidListenerReceiveEvent()
451 case instrumentation::Instrumentation::kMethodUnwind: in DidListenerReceiveEvent()
453 case instrumentation::Instrumentation::kDexPcMoved: in DidListenerReceiveEvent()
455 case instrumentation::Instrumentation::kFieldRead: in DidListenerReceiveEvent()
457 case instrumentation::Instrumentation::kFieldWritten: in DidListenerReceiveEvent()
460 case instrumentation::Instrumentation::kExceptionThrown: in DidListenerReceiveEvent()
462 case instrumentation::Instrumentation::kExceptionHandled: in DidListenerReceiveEvent()
464 case instrumentation::Instrumentation::kBranch: in DidListenerReceiveEvent()
466 case instrumentation::Instrumentation::kWatchedFramePop: in DidListenerReceiveEvent()
477 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in TEST_F()
514 TestEvent(instrumentation::Instrumentation::kMethodEntered, in TEST_F()
535 TestEvent(instrumentation::Instrumentation::kMethodExited, in TEST_F()
554 TestEvent(instrumentation::Instrumentation::kMethodExited, in TEST_F()
561 TestEvent(instrumentation::Instrumentation::kMethodUnwind); in TEST_F()
565 TestEvent(instrumentation::Instrumentation::kDexPcMoved); in TEST_F()
569 TestEvent(instrumentation::Instrumentation::kFieldRead); in TEST_F()
573 TestEvent(instrumentation::Instrumentation::kWatchedFramePop); in TEST_F()
588 TestEvent(instrumentation::Instrumentation::kFieldWritten, in TEST_F()
606 TestEvent(instrumentation::Instrumentation::kFieldWritten, in TEST_F()
613 TestEvent(instrumentation::Instrumentation::kExceptionHandled); in TEST_F()
617 TestEvent(instrumentation::Instrumentation::kExceptionThrown); in TEST_F()
621 TestEvent(instrumentation::Instrumentation::kBranch); in TEST_F()
628 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F()
659 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F()
677 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F()
694 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentNothing, in TEST_F()
702 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, in TEST_F()
709 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentNothing, in TEST_F()
716 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentNothing, in TEST_F()
725 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F()
730 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, in TEST_F()
736 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentNothing, in TEST_F()
744 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F()
749 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
755 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentNothing, in TEST_F()
763 Instrumentation* const instr = Runtime::Current()->GetInstrumentation(); \
765 ((_level) == Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); \
783 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
786 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
787 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
791 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
795 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
796 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
800 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
801 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
805 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
809 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
810 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
813 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
814 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
818 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
822 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
823 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
828 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
829 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
832 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
833 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
837 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
841 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
842 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
846 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
848 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, in TEST_F()
852 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
853 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
858 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
862 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
863 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
868 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
869 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
873 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
874 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, in TEST_F()
878 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
879 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
883 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
886 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
887 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
889 CheckConfigureStubs(kClientTwoKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
890 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
894 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
898 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
899 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
904 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
905 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
910 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
911 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
915 CheckConfigureStubs(kClientTwoKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
916 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
920 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
924 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
925 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
929 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
930 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 2U); in TEST_F()
933 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
934 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
937 CheckConfigureStubs(kClientTwoKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
938 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
942 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
946 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
947 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
952 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
953 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 2U); in TEST_F()
956 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
957 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
960 CheckConfigureStubs(kClientTwoKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
961 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
965 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
969 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
970 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
974 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
975 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 2U); in TEST_F()
979 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
980 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, in TEST_F()
984 CheckConfigureStubs(kClientTwoKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
985 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()