diff --git a/app/src/lib/performance/Monitor.svelte b/app/src/lib/performance/Monitor.svelte index 0ba767b..c942f0c 100644 --- a/app/src/lib/performance/Monitor.svelte +++ b/app/src/lib/performance/Monitor.svelte @@ -1,9 +1,32 @@
Runtime Execution
- {min}ms - {max}ms +{title}
+ {Math.floor(min || 0)}{type} + {getMax(max)}{type}- {Math.floor(getTotalPerformance(!lastRunOnly) * 100) / 100}msms + | +($activeType = "total")} + > + total({Math.floor(1000 / getTotalPerformance(showAverage))}fps) | -total | |
- {Math.floor(value * 100) / 100}ms + {round(value)}ms | -+ | ($activeType = key)} + > {key} | |
{getCacheRatio(!lastRunOnly)} | -cache hit | -||
{data.runs.length} | +{data.length} | Samples | |
{getCacheRatio(!showAverage)}% | +($activeType = "cache-hit")}>cache hits | +||
- {Math.floor(value * 100) / 100}ms + {round(value)}ms | -+ + | ($activeType = key)} + > {key.split("/").slice(-1).join("/")} | |
{humanizeNumber(getLast("total-vertices"))} | +Vertices | +||
{humanizeNumber(getLast("total-faces"))} | +Faces | +||
{humanizeNumber(viewer.runs.at(-1)?.["total-vertices"])} | -Vertices | ++ {round(value)}ms + | +($activeType = key)} + > + {key.split("/").slice(-1).join("/")} + |
{humanizeNumber(viewer.runs.at(-1)?.["total-faces"])} | -Faces | -||
- {Math.floor(value * 100) / 100}ms - | -- {key.split("/").slice(-1).join("/")} - | -
No runs available
@@ -185,6 +282,9 @@ padding-right: 10px; padding-block: 5px; } + td.active { + font-weight: bold; + } tr > td:nth-child(1) { text-align: right; } diff --git a/app/src/lib/performance/store.ts b/app/src/lib/performance/store.ts index 6dbbe48..63f9019 100644 --- a/app/src/lib/performance/store.ts +++ b/app/src/lib/performance/store.ts @@ -1,26 +1,24 @@ import { readable, type Readable } from "svelte/store"; -export type PerformanceData = { - total: Record