Wrap text displayed in 'Top Dispatch' table for neatness

Signed-off-by: coleramos425 <colramos@amd.com>
Este commit está contenido en:
coleramos425
2024-05-22 16:35:16 +00:00
cometido por Cole Ramos
padre 047d7771f3
commit c6cfa9cc26
+12 -4
Ver fichero
@@ -90,13 +90,21 @@ def show_all(args, runs, archConfigs, output):
elif header not in comparable_columns:
if (
type == "raw_csv_table"
and table_config["source"] == "pmc_kernel_top.csv"
and (
table_config["source"] == "pmc_kernel_top.csv"
or table_config["source"] == "pmc_dispatch_info.csv"
)
and header == "Kernel_Name"
):
# NB: the width of kernel name might depend on the header of the table.
adjusted_name = base_df["Kernel_Name"].apply(
lambda x: string_multiple_lines(x, 40, 3)
)
if table_config["source"] == "pmc_kernel_top.csv":
adjusted_name = base_df["Kernel_Name"].apply(
lambda x: string_multiple_lines(x, 40, 3)
)
else:
adjusted_name = base_df["Kernel_Name"].apply(
lambda x: string_multiple_lines(x, 80, 4)
)
df = pd.concat([df, adjusted_name], axis=1)
elif type == "raw_csv_table" and header == "Info":
for run, data in runs.items():