diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-03-31 11:02:04 -0700 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-03-31 11:02:04 -0700 |
commit | a90a5cec727a733d651d4cb40e2903c0e0541c06 (patch) | |
tree | 80949719c480e145ebca1f0cd9fa565439667989 | |
parent | 2f4eab566733af98d7c909313d666cce4a2d0f18 (diff) | |
download | damo-a90a5cec727a733d651d4cb40e2903c0e0541c06.tar.gz |
damo_record: Backup old mem_footprint files
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | damo_record.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/damo_record.py b/damo_record.py index 59725e5c..7557a5a7 100644 --- a/damo_record.py +++ b/damo_record.py @@ -71,6 +71,11 @@ def handle_args(args): if os.path.isfile(args.out): os.rename(args.out, args.out + '.old') + if args.footprint is True: + footprint_file_path = '%s.mem_footprint' % args.out + if os.path.isfile(footprint_file_path): + os.rename(footprint_file_path, footprint_file_path + '.old') + err = _damon_records.set_perf_path(args.perf_path) if err != None: print(err) |