diff options
Diffstat (limited to 'simpleperf/scripts/test.py')
-rwxr-xr-x | simpleperf/scripts/test.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/simpleperf/scripts/test.py b/simpleperf/scripts/test.py index 14efc326..d39dd2dc 100755 --- a/simpleperf/scripts/test.py +++ b/simpleperf/scripts/test.py @@ -1098,6 +1098,20 @@ class TestReportLib(TestBase): report_lib.MergeJavaMethods(False) self.assertEqual(parse_dso_names(report_lib), (True, False)) + def test_jited_java_methods(self): + report_lib = ReportLib() + report_lib.SetRecordFile(TEST_HELPER.testdata_path('perf_with_jit_symbol.data')) + has_jit_cache = False + while report_lib.GetNextSample(): + if report_lib.GetSymbolOfCurrentSample().dso_name == '[JIT app cache]': + has_jit_cache = True + callchain = report_lib.GetCallChainOfCurrentSample() + for i in range(callchain.nr): + if callchain.entries[i].symbol.dso_name == '[JIT app cache]': + has_jit_cache = True + report_lib.Close() + self.assertTrue(has_jit_cache) + def test_tracing_data(self): self.report_lib.SetRecordFile(TEST_HELPER.testdata_path('perf_with_tracepoint_event.data')) has_tracing_data = False |