Lines Matching refs:Instrumentation
203 void CheckConfigureStubs(const char* key, Instrumentation::InstrumentationLevel level) { in CheckConfigureStubs()
205 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in CheckConfigureStubs()
214 Instrumentation::InstrumentationLevel GetCurrentInstrumentationLevel() { in GetCurrentInstrumentationLevel()
232 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in TestEvent()
281 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in DeoptimizeMethod()
297 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in UndeoptimizeMethod()
312 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in DeoptimizeEverything()
327 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in UndeoptimizeEverything()
342 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in EnableMethodTracing()
354 instrumentation::Instrumentation* instrumentation = runtime->GetInstrumentation(); in DisableMethodTracing()
364 static bool HasEventListener(const instrumentation::Instrumentation* instr, uint32_t event_type) in HasEventListener()
367 case instrumentation::Instrumentation::kMethodEntered: in HasEventListener()
369 case instrumentation::Instrumentation::kMethodExited: in HasEventListener()
371 case instrumentation::Instrumentation::kMethodUnwind: in HasEventListener()
373 case instrumentation::Instrumentation::kDexPcMoved: in HasEventListener()
375 case instrumentation::Instrumentation::kFieldRead: in HasEventListener()
377 case instrumentation::Instrumentation::kFieldWritten: in HasEventListener()
379 case instrumentation::Instrumentation::kExceptionThrown: in HasEventListener()
381 case instrumentation::Instrumentation::kExceptionHandled: in HasEventListener()
383 case instrumentation::Instrumentation::kBranch: in HasEventListener()
385 case instrumentation::Instrumentation::kInvokeVirtualOrInterface: in HasEventListener()
387 case instrumentation::Instrumentation::kWatchedFramePop: in HasEventListener()
395 static void ReportEvent(const instrumentation::Instrumentation* instr, in ReportEvent()
405 case instrumentation::Instrumentation::kMethodEntered: in ReportEvent()
408 case instrumentation::Instrumentation::kMethodExited: { in ReportEvent()
413 case instrumentation::Instrumentation::kMethodUnwind: in ReportEvent()
416 case instrumentation::Instrumentation::kDexPcMoved: in ReportEvent()
419 case instrumentation::Instrumentation::kFieldRead: in ReportEvent()
422 case instrumentation::Instrumentation::kFieldWritten: { in ReportEvent()
427 case instrumentation::Instrumentation::kExceptionThrown: { in ReportEvent()
434 case instrumentation::Instrumentation::kBranch: in ReportEvent()
437 case instrumentation::Instrumentation::kInvokeVirtualOrInterface: in ReportEvent()
440 case instrumentation::Instrumentation::kWatchedFramePop: in ReportEvent()
443 case instrumentation::Instrumentation::kExceptionHandled: { in ReportEvent()
460 case instrumentation::Instrumentation::kMethodEntered: in DidListenerReceiveEvent()
462 case instrumentation::Instrumentation::kMethodExited: in DidListenerReceiveEvent()
465 case instrumentation::Instrumentation::kMethodUnwind: in DidListenerReceiveEvent()
467 case instrumentation::Instrumentation::kDexPcMoved: in DidListenerReceiveEvent()
469 case instrumentation::Instrumentation::kFieldRead: in DidListenerReceiveEvent()
471 case instrumentation::Instrumentation::kFieldWritten: in DidListenerReceiveEvent()
474 case instrumentation::Instrumentation::kExceptionThrown: in DidListenerReceiveEvent()
476 case instrumentation::Instrumentation::kExceptionHandled: in DidListenerReceiveEvent()
478 case instrumentation::Instrumentation::kBranch: in DidListenerReceiveEvent()
480 case instrumentation::Instrumentation::kInvokeVirtualOrInterface: in DidListenerReceiveEvent()
482 case instrumentation::Instrumentation::kWatchedFramePop: in DidListenerReceiveEvent()
493 instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation(); in TEST_F()
530 TestEvent(instrumentation::Instrumentation::kMethodEntered, in TEST_F()
550 TestEvent(instrumentation::Instrumentation::kMethodExited, in TEST_F()
569 TestEvent(instrumentation::Instrumentation::kMethodExited, in TEST_F()
576 TestEvent(instrumentation::Instrumentation::kMethodUnwind); in TEST_F()
580 TestEvent(instrumentation::Instrumentation::kDexPcMoved); in TEST_F()
584 TestEvent(instrumentation::Instrumentation::kFieldRead); in TEST_F()
588 TestEvent(instrumentation::Instrumentation::kWatchedFramePop); in TEST_F()
603 TestEvent(instrumentation::Instrumentation::kFieldWritten, in TEST_F()
621 TestEvent(instrumentation::Instrumentation::kFieldWritten, in TEST_F()
628 TestEvent(instrumentation::Instrumentation::kExceptionHandled); in TEST_F()
632 TestEvent(instrumentation::Instrumentation::kExceptionThrown); in TEST_F()
636 TestEvent(instrumentation::Instrumentation::kBranch); in TEST_F()
640 TestEvent(instrumentation::Instrumentation::kInvokeVirtualOrInterface); in TEST_F()
647 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F()
678 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F()
696 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F()
713 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentNothing, in TEST_F()
721 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, in TEST_F()
728 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentNothing, in TEST_F()
735 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentNothing, in TEST_F()
744 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F()
749 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, in TEST_F()
755 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentNothing, in TEST_F()
763 instrumentation::Instrumentation* instr = runtime->GetInstrumentation(); in TEST_F()
768 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
774 EXPECT_EQ(Instrumentation::InstrumentationLevel::kInstrumentNothing, in TEST_F()
782 Instrumentation* const instr = Runtime::Current()->GetInstrumentation(); \
784 ((_level) == Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); \
802 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
805 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
806 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
810 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
814 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
815 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
819 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
820 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
824 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); 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::kInstrumentWithInstrumentationStubs); in TEST_F()
842 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
847 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
848 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
851 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
852 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
856 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
860 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
861 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
865 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
866 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
870 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
871 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
876 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
880 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
881 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
886 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
887 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
891 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
892 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
896 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
897 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
901 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
904 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
905 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
907 CheckConfigureStubs(kClientTwoKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
908 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
912 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
916 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
917 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
922 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
923 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
928 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
929 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
933 CheckConfigureStubs(kClientTwoKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
934 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
938 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
942 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
943 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
947 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
948 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 2U); in TEST_F()
951 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
952 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
955 CheckConfigureStubs(kClientTwoKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
956 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
960 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
964 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
965 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
970 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
971 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 2U); in TEST_F()
974 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
975 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
978 CheckConfigureStubs(kClientTwoKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
979 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
983 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()
987 Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter); in TEST_F()
988 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 1U); in TEST_F()
992 Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs); in TEST_F()
993 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInterpreter, 2U); in TEST_F()
997 CheckConfigureStubs(kClientOneKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
998 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentWithInstrumentationStubs, in TEST_F()
1002 CheckConfigureStubs(kClientTwoKey, Instrumentation::InstrumentationLevel::kInstrumentNothing); in TEST_F()
1003 CHECK_INSTRUMENTATION(Instrumentation::InstrumentationLevel::kInstrumentNothing, 0U); in TEST_F()