From a2128811309c50841bbd3bc50302763a71eea65d Mon Sep 17 00:00:00 2001 From: qazal <77887910+Qazalin@users.noreply.github.com> Date: Wed, 18 Feb 2026 18:40:34 +0800 Subject: [PATCH] viz: second profiler link goes to source code (#14855) --- tinygrad/viz/js/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tinygrad/viz/js/index.js b/tinygrad/viz/js/index.js index 36d7a689d9..87d8c128c5 100644 --- a/tinygrad/viz/js/index.js +++ b/tinygrad/viz/js/index.js @@ -259,8 +259,8 @@ function setFocus(key) { if (e.arg.ctx != null) { const i = e.arg.ctx; s = e.arg.step; html.append("a").text(ctxs[i+1].steps[s].name).on("click", () => switchCtx(i, s)); - const prgSrc = ctxs[i+1].steps.findIndex(s => s.name === "View Program"); - if (prgSrc !== -1) html.append("a").text("View program").on("click", () => switchCtx(i, prgSrc)); + const prgSrc = ctxs[i+1].steps.findIndex(s => s.name === "View Source"); + if (prgSrc !== -1) html.append("a").text("View Source").on("click", () => switchCtx(i, prgSrc)); } } if (eventType === EventTypes.BUF) { @@ -872,7 +872,7 @@ async function main() { } if (ret.ref != null) { const disasmIdx = ctxs[ret.ref+1].steps.findIndex(s => s.name === "View Disassembly") - metadata.appendChild(d3.create("a").text("View Program Graph").on("click", () => switchCtx(ret.ref, disasmIdx)).node()); + metadata.appendChild(d3.create("a").text("View Disassembly").on("click", () => switchCtx(ret.ref, disasmIdx)).node()); } if (ret.cols != null) renderTable(root, ret); else if (ret.src != null) root.append(() => codeBlock(ret.src, ret.lang));