diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-02-25 09:59:44 -0800 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-02-25 09:59:44 -0800 |
commit | 9eab68e961f44a11aa49856be84101103b0867fb (patch) | |
tree | 60aacf191d5e81dbb6648bc40f29be7423531e89 | |
parent | 8fd10b2d17ec35a43948829ed0bf66c7b648d1c6 (diff) | |
download | damo-9eab68e961f44a11aa49856be84101103b0867fb.tar.gz |
damo_replay: Receive user-friendly input for --progress_notice_interval
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | damo_replay.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/damo_replay.py b/damo_replay.py index 9e1d26fc..3150f2cf 100644 --- a/damo_replay.py +++ b/damo_replay.py @@ -82,9 +82,11 @@ def main(args): for region in snapshot.regions: region.nr_accesses.add_unset_unit(record.intervals) - progress_notice_interval = args.progress_notice_interval - if progress_notice_interval is None: + if args.progress_notice_interval is None: progress_notice_interval = 3 + else: + progress_notice_interval = _damo_fmt_str.text_to_sec( + args.progress_notice_interval) progress_notice_time = time.time() + progress_notice_interval for idx, snapshot in enumerate(record.snapshots): @@ -98,7 +100,6 @@ def set_argparser(parser): parser.add_argument('--input', metavar='<file>', default='damon.data', help='record file to replay') parser.add_argument('--progress_notice_interval', metavar='<seconds>', - type=float, help='time interval between replay progress notice') parser.add_argument( '--test_perf', metavar='<bytes>', |