SWDEV-430460: Updated readme and fixed att.csv being generated only on current dir.

Change-Id: I81522a79e61ff0f35f74035b48ff594d7a05a424


[ROCm/rocprofiler commit: 9e625eb58a]
Tá an tiomantas seo le fáil i:
Giovanni LB
2023-11-10 06:07:42 -03:00
tuismitheoir a88e4c9d34
tiomantas 2d3edde2a4
D'athraigh 2 comhad le 17 breiseanna agus 9 scriosta
+4 -1
Féach ar an gComhad
@@ -8,7 +8,10 @@ def dump_csv(code, trace_instance_name):
outpath = os.getenv("OUT_FILE_NAME")
if outpath is None:
outpath = "att_output"
outpath += '_' + trace_instance_name.split('/')[-1] + '.csv'
elif os.path.dirname(outpath) != '':
os.makedirs(os.path.dirname(outpath), exist_ok=True)
outpath += '_' + os.path.basename(trace_instance_name) + '.csv'
with open(outpath, 'w') as f:
writer = csv.writer(f)