Enable standalone GUI with new metric reordering

Signed-off-by: colramos-amd <colramos@amd.com>
This commit is contained in:
colramos-amd
2024-02-06 16:08:00 -06:00
committed by Cole Ramos
parent 3b8e08f589
commit 48911111be
4 changed files with 21 additions and 21 deletions
+12 -12
View File
@@ -196,31 +196,31 @@ def build_bar_chart(display_df, table_config, barchart_elements, norm_filt):
# Speed-of-light bar chart
elif table_config["id"] in barchart_elements["sol"]:
display_df["Value"] = [
x.astype(float) if x != "" else float(0) for x in display_df["Value"]
display_df["Avg"] = [
x.astype(float) if x != "" else float(0) for x in display_df["Avg"]
]
if table_config["id"] == 1701:
# special layout for L2 Cache SOL
d_figs.append(
px.bar(
display_df[display_df["Unit"] == "Pct"],
x="Value",
x="Avg",
y="Metric",
color="Value",
color="Avg",
range_color=[0, 100],
labels={"Value": "%"},
labels={"Avg": "%"},
height=220,
orientation="h",
).update_xaxes(range=[0, 110], ticks="inside")
).update_xaxes(range=[0, 110], ticks="inside", title="%")
) # append first % chart
d_figs.append(
px.bar(
display_df[display_df["Unit"] == "Gb/s"],
x="Value",
x="Avg",
y="Metric",
color="Value",
color="Avg",
range_color=[0, 1638],
labels={"Value": "GB/s"},
labels={"Avg": "GB/s"},
height=220,
orientation="h",
).update_xaxes(range=[0, 1638])
@@ -229,11 +229,11 @@ def build_bar_chart(display_df, table_config, barchart_elements, norm_filt):
d_figs.append(
px.bar(
display_df,
x="Value",
x="Avg",
y="Metric",
color="Value",
color="Avg",
range_color=[0, 100],
labels={"Value": "%"},
labels={"Avg": "%"},
height=400,
orientation="h",
).update_xaxes(range=[0, 110])
+2 -2
View File
@@ -89,8 +89,8 @@ def get_header(raw_pmc, input_filters, kernel_names):
external_link=True,
),
dbc.DropdownMenuItem(
"Shader Processor Input (SPI)",
href="#shader_processor_input_spi",
"Workgroup Manager (SPI)",
href="#workgroup_manager_spi",
external_link=True,
),
dbc.DropdownMenuItem(