Home
last modified time | relevance | path

Searched refs:TestHelper (Results 1 – 15 of 15) sorted by relevance

/system/extras/simpleperf/scripts/test/
Dreport_html_test.py22 from . test_utils import TestBase, TestHelper
28 TestHelper.testdata_path('perf_with_long_callchain.data')])
35 TestHelper.testdata_path('aggregatable_perf1.data'),
36 TestHelper.testdata_path('aggregatable_perf2.data')])
46 TestHelper.testdata_path('aggregatable_perf1.data'),
47 TestHelper.testdata_path('aggregatable_perf2.data')])
60 perf_data = TestHelper.testdata_path('two_process_perf.data')
73 testdata_file = TestHelper.testdata_path('perf_need_proguard_mapping.data')
74 proguard_mapping_file = TestHelper.testdata_path('proguard_mapping.txt')
86 if TestHelper.ndk_path:
[all …]
Dbinary_cache_builder_test.py25 from . test_utils import TestBase, TestHelper
30 readelf = ReadElf(TestHelper.ndk_path)
37 origin_file = TestHelper.testdata_path(filename)
41 binary_cache_builder = BinaryCacheBuilder(TestHelper.ndk_path, False)
61 binary_cache_builder = BinaryCacheBuilder(TestHelper.ndk_path, False)
63 symfs_dir = TestHelper.testdata_path('data/symfs_without_build_id')
72 binary_cache_builder = BinaryCacheBuilder(TestHelper.ndk_path, False)
74 TestHelper.testdata_path('runtest_two_functions_arm64_perf.data'))
79 TestHelper.testdata_path(
85 shutil.copy(TestHelper.testdata_path(
[all …]
Dtools_test.py23 from . test_utils import TestBase, TestHelper
98 binary_finder = BinaryFinder(TestHelper.testdata_dir, ReadElf(TestHelper.ndk_path))
99 addr2line = Addr2Nearestline(TestHelper.ndk_path, binary_finder, with_function_name)
178 binary_finder = BinaryFinder(TestHelper.testdata_dir, ReadElf(TestHelper.ndk_path))
179 objdump = Objdump(TestHelper.ndk_path, binary_finder)
220 readelf = ReadElf(TestHelper.ndk_path)
223 path = os.path.join(TestHelper.testdata_dir, dso_path)
237 [TestHelper.testdata_path('SimpleperfExampleWithNative'),
238 TestHelper.testdata_path('SimpleperfExampleOfKotlin')])
241 return os.path.join(TestHelper.testdata_dir, path.replace('/', os.sep))
[all …]
Dtest_utils.py36 class TestHelper: class
97 output = subprocess.check_output(args, stderr=TestHelper.log_fh)
119 self.test_dir = TestHelper.get_test_dir(
123 TestHelper.log('begin test %s.%s' % (self.__class__.__name__, self._testMethodName))
138 TestHelper.log(
142 TestHelper.log(err_info)
147 TestHelper.write_progress(
153 args += TestHelper.browser_option
154 if TestHelper.ndk_path:
157 args += ['--ndk_path', TestHelper.ndk_path]
[all …]
Dreport_lib_test.py18 from . test_utils import TestBase, TestHelper
25 self.report_lib.SetRecordFile(TestHelper.testdata_path('perf_with_symbols.data'))
63 self.report_lib.SetRecordFile(TestHelper.testdata_path('perf_with_trace_offcpu.data'))
72 self.report_lib.SetRecordFile(TestHelper.testdata_path('perf_with_tracepoint_event.data'))
80 self.report_lib.SetRecordFile(TestHelper.testdata_path('perf_with_trace_offcpu.data'))
86 self.report_lib.SetRecordFile(TestHelper.testdata_path('perf_with_trace_offcpu.data'))
107 report_lib.SetRecordFile(TestHelper.testdata_path('perf_with_interpreter_frames.data'))
130 report_lib.SetRecordFile(TestHelper.testdata_path('perf_with_interpreter_frames.data'))
154 report_lib.SetRecordFile(TestHelper.testdata_path('perf_with_jit_symbol.data'))
167 self.report_lib.SetRecordFile(TestHelper.testdata_path('perf_with_tracepoint_event.data'))
[all …]
Dinferno_test.py21 from . test_utils import INFERNO_SCRIPT, TestBase, TestHelper
32 testdata_file = TestHelper.testdata_path('perf_need_proguard_mapping.data')
33 proguard_mapping_file = TestHelper.testdata_path('proguard_mapping.txt')
Dpprof_proto_generator_test.py22 from . test_utils import TestBase, TestHelper
27 testdata_path = TestHelper.testdata_path(testdata_file)
33 testdata_paths = [TestHelper.testdata_path(f) for f in testdata_files]
108 proguard_mapping_file = TestHelper.testdata_path('proguard_mapping.txt')
117 testdata_file = TestHelper.testdata_path('runtest_two_functions_arm64_perf.data')
120 binary_cache_builder = BinaryCacheBuilder(TestHelper.ndk_path, False)
121 binary_cache_builder.build_binary_cache(testdata_file, [TestHelper.testdata_dir])
Dpurgatorio_test.py22 from . test_utils import TestBase, TestHelper
37 testdata_file = TestHelper.testdata_path('perf_need_proguard_mapping.data')
38 proguard_mapping_file = TestHelper.testdata_path('proguard_mapping.txt')
Dapp_test.py23 from . test_utils import TestBase, TestHelper, AdbHelper, INFERNO_SCRIPT
30 cls.example_path = TestHelper.testdata_path(example_name)
50 cls.use_compiled_java_code = TestHelper.android_version <= 8
51 cls.testcase_dir = TestHelper.get_test_dir(cls.__name__)
61 if 'TraceOffCpu' in self.id() and not TestHelper.is_trace_offcpu_supported():
223 self.adb = TestHelper.adb
238 stdout=TestHelper.log_fh, stderr=TestHelper.log_fh)
248 self.install_apk(TestHelper.testdata_path('DisplayBitmaps.apk'),
250 self.install_apk(TestHelper.testdata_path('DisplayBitmapsTest.apk'),
257 if TestHelper.android_version >= 9:
[all …]
Dapi_profiler_test.py21 from . test_utils import TestBase, TestHelper
26 adb = TestHelper.adb
27 if TestHelper.android_version < ord(min_android_version) - ord('L') + 5:
33 apk_path = TestHelper.testdata_path(apk_name)
Dapp_profiler_test.py21 from . test_utils import TestBase, TestHelper, INFERNO_SCRIPT
27 self.is_rooted_device = TestHelper.adb.switch_to_root()
44 pid = int(TestHelper.adb.check_run_and_return_output(['shell', 'pidof', 'system_server']))
60 self.adb = TestHelper.adb
62 self.ndk_path = TestHelper.ndk_path
75 downloader.collect_native_libs_on_host(TestHelper.testdata_path(
123 shutil.copyfile(TestHelper.testdata_path('data/symfs_without_build_id/elf'), name)
Dcpp_app_test.py21 from . test_utils import INFERNO_SCRIPT, TestHelper
161 abi=TestHelper.get_32bit_abi())
170 abi=TestHelper.get_32bit_abi(),
180 abi=TestHelper.get_32bit_abi())
Ddebug_unwind_reporter_test.py19 from . test_utils import TestBase, TestHelper
24 report_file = TestHelper.testdata_dir / 'debug_unwind_report.txt'
Djava_app_test.py25 from . test_utils import TestHelper, INFERNO_SCRIPT
60 args = [sys.executable, TestHelper.script_path("app_profiler.py"),
74 [sys.executable, TestHelper.script_path('app_profiler.py'),
Ddo_test.py59 from . test_utils import TestHelper
165 test_runner = unittest.TextTestRunner(stream=TestHelper.log_fh, verbosity=0)
180 TestHelper.init(args.test_dir, args.testdata_dir,