Skip to content

Commit

Permalink
Fix: make footprint display configurable app-wide
Browse files Browse the repository at this point in the history
- note: requires full ui-defaults object in config
  • Loading branch information
spacehamster87 committed Mar 14, 2024
1 parent 82f5257 commit 849b7e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var Keys schema.ProgramConfig = schema.ProgramConfig{
"job_view_nodestats_selectedMetrics": []string{"flops_any", "mem_bw", "mem_used"},
"job_view_polarPlotMetrics": []string{"flops_any", "mem_bw", "mem_used"},
"job_view_selectedMetrics": []string{"flops_any", "mem_bw", "mem_used"},
"job_view_showFootprint": true,
"plot_general_colorBackground": true,
"plot_general_colorscheme": []string{"#00bfff", "#0000ff", "#ff00ff", "#ff0000", "#ff8000", "#ffff00", "#80ff00"},
"plot_general_lineWidth": 3,
Expand Down
6 changes: 5 additions & 1 deletion web/frontend/src/Job.root.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
let isMetricsSelectionOpen = false,
selectedMetrics = [],
showFootprint = true,
isFetched = new Set();
const [jobMetrics, startFetching] = fetchMetricsStore();
getContext("on-init")(() => {
Expand All @@ -77,6 +78,9 @@
.find((c) => c.name == job.cluster)
.metricConfig.map((mc) => mc.name);
showFootprint =
ccconfig[`job_view_showFootprint`]
let toFetch = new Set([
"flops_any",
"mem_bw",
Expand Down Expand Up @@ -209,7 +213,7 @@
<Spinner secondary />
{/if}
</Col>
{#if $jobMetrics.data}
{#if $jobMetrics.data && showFootprint}
{#key $jobMetrics.data}
<Col>
<JobFootprint
Expand Down

0 comments on commit 849b7e0

Please sign in to comment.