json trace normalizing for app start

Change-Id: I97480f7461c377096c101cd0dc6ce088f799fbab


[ROCm/rocprofiler commit: dfba287ff2]
这个提交包含在:
Evgeny 于 2020-06-17 19:01:12 -05:00 提交
1 父节点 669dcf4f05
当前提交 80ad421ce0
1 个文件已更改
+6
+6
查看文件
@@ -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):