Lines Matching refs:report_lib

973         self.report_lib = ReportLib()
974 self.report_lib.SetRecordFile(TEST_HELPER.testdata_path('perf_with_symbols.data'))
977 self.report_lib.Close()
981 build_id = self.report_lib.GetBuildIdForPath('/data/t2')
986 while self.report_lib.GetNextSample():
987 symbol = self.report_lib.GetSymbolOfCurrentSample()
996 while self.report_lib.GetNextSample():
997 sample = self.report_lib.GetCurrentSample()
1005 event = self.report_lib.GetEventOfCurrentSample()
1007 callchain = self.report_lib.GetCallChainOfCurrentSample()
1012 self.report_lib.SetRecordFile(TEST_HELPER.testdata_path('perf_with_trace_offcpu.data'))
1013 meta_info = self.report_lib.MetaInfo()
1021 self.report_lib.SetRecordFile(TEST_HELPER.testdata_path('perf_with_tracepoint_event.data'))
1023 while self.report_lib.GetNextSample():
1024 event_names.add(self.report_lib.GetEventOfCurrentSample().name)
1029 self.report_lib.SetRecordFile(TEST_HELPER.testdata_path('perf_with_trace_offcpu.data'))
1030 self.assertEqual(self.report_lib.GetRecordCmd(),
1035 self.report_lib.SetRecordFile(TEST_HELPER.testdata_path('perf_with_trace_offcpu.data'))
1039 while self.report_lib.GetNextSample():
1040 sample = self.report_lib.GetCurrentSample()
1042 if self.report_lib.GetSymbolOfCurrentSample().symbol_name == sleep_function_name:
1045 callchain = self.report_lib.GetCallChainOfCurrentSample()
1050 self.assertEqual(self.report_lib.GetEventOfCurrentSample().name, 'cpu-cycles')
1055 def has_art_frame(report_lib): argument
1056 report_lib.SetRecordFile(TEST_HELPER.testdata_path('perf_with_interpreter_frames.data'))
1058 while report_lib.GetNextSample():
1059 callchain = report_lib.GetCallChainOfCurrentSample()
1064 report_lib.Close()
1067 report_lib = ReportLib()
1068 self.assertFalse(has_art_frame(report_lib))
1069 report_lib = ReportLib()
1070 report_lib.ShowArtFrames(False)
1071 self.assertFalse(has_art_frame(report_lib))
1072 report_lib = ReportLib()
1073 report_lib.ShowArtFrames(True)
1074 self.assertTrue(has_art_frame(report_lib))
1077 def parse_dso_names(report_lib): argument
1079 report_lib.SetRecordFile(TEST_HELPER.testdata_path('perf_with_interpreter_frames.data'))
1080 while report_lib.GetNextSample():
1081 dso_names.add(report_lib.GetSymbolOfCurrentSample().dso_name)
1082 callchain = report_lib.GetCallChainOfCurrentSample()
1085 report_lib.Close()
1090 report_lib = ReportLib()
1091 self.assertEqual(parse_dso_names(report_lib), (False, True))
1093 report_lib = ReportLib()
1094 report_lib.MergeJavaMethods(True)
1095 self.assertEqual(parse_dso_names(report_lib), (False, True))
1097 report_lib = ReportLib()
1098 report_lib.MergeJavaMethods(False)
1099 self.assertEqual(parse_dso_names(report_lib), (True, False))
1102 self.report_lib.SetRecordFile(TEST_HELPER.testdata_path('perf_with_tracepoint_event.data'))
1104 while self.report_lib.GetNextSample():
1105 event = self.report_lib.GetEventOfCurrentSample()
1106 tracing_data = self.report_lib.GetTracingDataOfCurrentSample()