From 827a85412e3dc2a9698adadc92492c334f739347 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Tue, 5 Sep 2023 14:55:36 +0200 Subject: [PATCH] Fix polar and roofline sizes in jobView - add option for adaptable roofline sizing --- web/frontend/src/Job.root.svelte | 33 +++++++++++--------------- web/frontend/src/Status.root.svelte | 1 + web/frontend/src/plots/Polar.svelte | 3 ++- web/frontend/src/plots/Roofline.svelte | 10 ++++---- 4 files changed, 22 insertions(+), 25 deletions(-) diff --git a/web/frontend/src/Job.root.svelte b/web/frontend/src/Job.root.svelte index b0db95e..e2bba63 100644 --- a/web/frontend/src/Job.root.svelte +++ b/web/frontend/src/Job.root.svelte @@ -131,7 +131,6 @@ lazyFetchMoreMetrics(); let plots = {}, - roofWidth, jobTags, statsTable; $: document.title = $initq.fetching @@ -253,24 +252,20 @@ /> -
- c.name == $initq.data.job.cluster) - .subClusters.find( - (sc) => sc.name == $initq.data.job.subCluster - )} - data={ - transformDataForRoofline ( - $jobMetrics.data.jobMetrics.find((m) => m.name == "flops_any" && m.scope == "node").metric, - $jobMetrics.data.jobMetrics.find((m) => m.name == "mem_bw" && m.scope == "node").metric - ) - } - /> -
+ c.name == $initq.data.job.cluster) + .subClusters.find( + (sc) => sc.name == $initq.data.job.subCluster + )} + data={ + transformDataForRoofline ( + $jobMetrics.data.jobMetrics.find((m) => m.name == "flops_any" && m.scope == "node").metric, + $jobMetrics.data.jobMetrics.find((m) => m.name == "mem_bw" && m.scope == "node").metric + ) + } + /> {:else} diff --git a/web/frontend/src/Status.root.svelte b/web/frontend/src/Status.root.svelte index 73060c6..fffbfde 100644 --- a/web/frontend/src/Status.root.svelte +++ b/web/frontend/src/Status.root.svelte @@ -427,6 +427,7 @@
{#key $mainQuery.data.nodeMetrics}
- +