frontend returns strings; added helper function to calc. unmatched ratio

This commit is contained in:
Julian Hammer
2020-01-28 17:24:00 +01:00
parent 421cf55af7
commit 530ad8484e
6 changed files with 100 additions and 95 deletions

View File

@@ -67,13 +67,15 @@ class TestFrontend(unittest.TestCase):
def test_frontend_x86(self):
dg = KernelDG(self.kernel_x86, self.parser_x86, self.machine_model_csx)
fe = Frontend(path_to_yaml=os.path.join(self.MODULE_DATA_DIR, 'csx.yml'))
fe.print_throughput_analysis(self.kernel_x86, show_cmnts=False)
fe.print_latency_analysis(dg.get_critical_path())
fe.throughput_analysis(self.kernel_x86, show_cmnts=False)
fe.latency_analysis(dg.get_critical_path())
# TODO compare output with checked string
def test_frontend_AArch64(self):
dg = KernelDG(self.kernel_AArch64, self.parser_AArch64, self.machine_model_tx2)
fe = Frontend(path_to_yaml=os.path.join(self.MODULE_DATA_DIR, 'tx2.yml'))
fe.print_full_analysis(self.kernel_AArch64, dg, verbose=True)
fe.full_analysis(self.kernel_AArch64, dg, verbose=True)
# TODO compare output with checked string
##################
# Helper functions