From dfba287ff2f8bd29b4a8ed1f8e6d8058b0ec6534 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 17 Jun 2020 19:01:12 -0500 Subject: [PATCH] json trace normalizing for app start Change-Id: I97480f7461c377096c101cd0dc6ce088f799fbab --- bin/tblextr.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/tblextr.py b/bin/tblextr.py index 4fb54707dc..26f4f424f3 100755 --- a/bin/tblextr.py +++ b/bin/tblextr.py @@ -562,6 +562,12 @@ inext = re.sub(r'^.*(\.[^\.]+)$', r'\1', inext) dbfile = '' csvfile = '' +begin_ts_file = indir + '/begin_ts_file.txt' +if os.path.isfile(file_name): + with open(begin_ts_file, mode='r') as fd: + START_US=int(fd.readline()) / 1000 + print('Appilcation START-ts found (' + START_US + 'us)') + if re.search(r'\.csv$', outfile): csvfile = outfile elif re.search(r'\.db$', outfile):