From c72c9048cc13b74e62435c3b40ed8c7cc36d12a6 Mon Sep 17 00:00:00 2001 From: Daoxuan Xu <101349164+DX990307@users.noreply.github.com> Date: Wed, 27 Mar 2024 13:14:13 -0400 Subject: [PATCH] fix bugs (#50) Co-authored-by: Yifan Sun --- samples/runner/flag.go | 2 +- samples/runner/timingplatform.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/runner/flag.go b/samples/runner/flag.go index dbd774d4..8a3287a4 100644 --- a/samples/runner/flag.go +++ b/samples/runner/flag.go @@ -46,7 +46,7 @@ var customPortForAkitaRTM = flag.Int("akitartm-port", 0, this number is not given or a invalid number is given number, a random port will be used.`) -var analyszerNameFlag = flag.String("analyzer-Name", "", +var analyszerNameFlag = flag.String("analyzer-name", "", "The name of the analyzer to use.") var analyszerPeriodFlag = flag.Float64("analyzer-period", 0.0, diff --git a/samples/runner/timingplatform.go b/samples/runner/timingplatform.go index c29f84fb..b2ea6726 100644 --- a/samples/runner/timingplatform.go +++ b/samples/runner/timingplatform.go @@ -245,6 +245,7 @@ func (b *R9NanoPlatformBuilder) setupPerformanceAnalyzer() { b.perfAnalyzer = analysis.MakePerfAnalyzerBuilder(). WithPeriod(sim.VTimeInSec(b.perfAnalyzingPeriod)). WithDBFilename(b.perfAnalysisFileName). + WithEngine(b.engine). Build() } }