From 3bf0db80ef668d0ba85fbd1bbd056ef6cc203703 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Thu, 7 Aug 2025 08:08:48 -0700 Subject: [PATCH] Revert "viz: pick the largest rect for proxy fillColor (#11558)" This reverts commit 76079bc7f2d349a419a144719c6bfbde4350c61d. --- tinygrad/viz/js/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tinygrad/viz/js/index.js b/tinygrad/viz/js/index.js index c8245ecdf2..fa64869aa9 100644 --- a/tinygrad/viz/js/index.js +++ b/tinygrad/viz/js/index.js @@ -203,9 +203,8 @@ async function renderProfiler() { for (let jlod = lodIdx - 1; jlod >= 0; jlod--) { const ix = Math.floor((e.st-st) / timelineLODThresholds[jlod + 1]); const iy = offsetY+levelHeight*e.depth; - const proxy = ((((tempProxiesBuilder[i] ??= {})[jlod]) ??= {})[ix] ??= {})[iy] ??= { x: e.st-st, y: iy, h: levelHeight, pct: 0, fillColor, fillVal:e.dur }; - proxy.pct += e.dur / timelineLODThresholds[jlod + 1]; - if (e.dur > proxy.fillVal) proxy.fillColor = fillColor; proxy.fillVal = e.dur; + ((((tempProxiesBuilder[i] ??= {})[jlod]) ??= {})[ix] ??= {})[iy] ??= { x: e.st-st, y: iy, h: levelHeight, pct: 0, fillColor }; + tempProxiesBuilder[i][jlod][ix][iy].pct += e.dur / timelineLODThresholds[jlod + 1]; } } }