Make saved analysis output verbose

Signed-off-by: colramos-amd <colramos@amd.com>


[ROCm/rocprofiler-compute commit: d884f89a69]
Этот коммит содержится в:
colramos-amd
2022-11-10 09:54:26 -06:00
родитель 55eb3c6548
Коммит 46f182a0b9
3 изменённых файлов: 7 добавлений и 5 удалений
+1 -1
Просмотреть файл
@@ -215,7 +215,7 @@ def omniperf_cli(args):
runs[d[0]].raw_pmc = file_io.create_df_pmc(d[0]) # creates mega dataframe
is_gui = False
parser.load_table_data(
runs[d[0]], d[0], is_gui, args.g
runs[d[0]], d[0], is_gui, args.g, args.verbose
) # create the loaded table
if args.list_kernels:
tty.show_kernels(runs, archConfigs["gfx90a"], output, args.decimal)
+1 -1
Просмотреть файл
@@ -378,7 +378,7 @@ def build_layout(
panel_configs = temp
parser.load_table_data(
runs[path_to_dir], path_to_dir, True, debug
runs[path_to_dir], path_to_dir, True, debug, verbose
) # Note: All the filtering happens in this function
div_children = []
+5 -3
Просмотреть файл
@@ -695,7 +695,7 @@ def load_kernel_top(workload, dir):
workload.dfs.update(tmp)
def load_table_data(workload, dir, is_gui, debug):
def load_table_data(workload, dir, is_gui, debug, verbose):
"""
Load data for all "raw_csv_table".
Calculate mertric value for all "metric_table".
@@ -716,9 +716,11 @@ def load_table_data(workload, dir, is_gui, debug):
out_path = os.path.join(dir, name)
try:
os.mkdir(out_path)
print("Created a Saved Analysis folder")
if verbose >= 1:
print("Created a Saved Analysis folder")
except OSError as error:
print("Saved Analysis folder exists")
if verbose >= 1:
print("Saved Analysis folder exists")
for id, df in workload.dfs.items():
if "coll_level" in list(df.columns):
df = df.drop(["coll_level", "Tips"], axis=1)