Lines Matching refs:report_lib
848 self.report_lib = ReportLib()
849 self.report_lib.SetRecordFile(os.path.join('testdata', 'perf_with_symbols.data'))
852 self.report_lib.Close()
855 build_id = self.report_lib.GetBuildIdForPath('/data/t2')
860 while self.report_lib.GetNextSample():
861 symbol = self.report_lib.GetSymbolOfCurrentSample()
870 while self.report_lib.GetNextSample():
871 sample = self.report_lib.GetCurrentSample()
879 event = self.report_lib.GetEventOfCurrentSample()
881 callchain = self.report_lib.GetCallChainOfCurrentSample()
886 self.report_lib.SetRecordFile(os.path.join('testdata', 'perf_with_trace_offcpu.data'))
887 meta_info = self.report_lib.MetaInfo()
895 self.report_lib.SetRecordFile(os.path.join('testdata', 'perf_with_tracepoint_event.data'))
897 while self.report_lib.GetNextSample():
898 event_names.add(self.report_lib.GetEventOfCurrentSample().name)
903 self.report_lib.SetRecordFile(os.path.join('testdata', 'perf_with_trace_offcpu.data'))
904 self.assertEqual(self.report_lib.GetRecordCmd(),
909 self.report_lib.SetRecordFile(os.path.join('testdata', 'perf_with_trace_offcpu.data'))
913 while self.report_lib.GetNextSample():
914 sample = self.report_lib.GetCurrentSample()
916 if self.report_lib.GetSymbolOfCurrentSample().symbol_name == sleep_function_name:
919 callchain = self.report_lib.GetCallChainOfCurrentSample()
924 self.assertEqual(self.report_lib.GetEventOfCurrentSample().name, 'cpu-cycles')
929 def has_art_frame(report_lib): argument
930 report_lib.SetRecordFile(os.path.join('testdata', 'perf_with_interpreter_frames.data'))
932 while report_lib.GetNextSample():
933 callchain = report_lib.GetCallChainOfCurrentSample()
938 report_lib.Close()
941 report_lib = ReportLib()
942 self.assertFalse(has_art_frame(report_lib))
943 report_lib = ReportLib()
944 report_lib.ShowArtFrames(False)
945 self.assertFalse(has_art_frame(report_lib))
946 report_lib = ReportLib()
947 report_lib.ShowArtFrames(True)
948 self.assertTrue(has_art_frame(report_lib))
951 self.report_lib.SetRecordFile(os.path.join('testdata', 'perf_with_tracepoint_event.data'))
953 while self.report_lib.GetNextSample():
954 event = self.report_lib.GetEventOfCurrentSample()
955 tracing_data = self.report_lib.GetTracingDataOfCurrentSample()