From ad4cac60e0c3148fb060ed57d276a4ec3f8bcc73 Mon Sep 17 00:00:00 2001 From: DX990307 <101349164+DX990307@users.noreply.github.com> Date: Sun, 24 Mar 2024 10:30:48 -0400 Subject: [PATCH] fix bugs --- 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 a14ba464..6bec4a76 100644 --- a/samples/runner/timingplatform.go +++ b/samples/runner/timingplatform.go @@ -243,6 +243,7 @@ func (b *R9NanoPlatformBuilder) setupPerformanceAnalyzer() { b.perfAnalyzer = analysis.MakePerfAnalyzerBuilder(). WithPeriod(sim.VTimeInSec(b.perfAnalyzingPeriod)). WithDBFilename(b.perfAnalysisFileName). + WithEngine(b.engine). Build() } }