Revert "remove junk"

This reverts commit 4987e7bec1.
This commit is contained in:
qazal
2025-06-13 15:56:23 +03:00
parent 4987e7bec1
commit 5aac2034fb
3 changed files with 111378 additions and 1 deletions

3687
tinygrad/viz/chrome.html Normal file

File diff suppressed because one or more lines are too long

107690
tinygrad/viz/js/tracing.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -125,7 +125,7 @@ class Handler(BaseHTTPRequestHandler):
def do_GET(self):
ret, status_code, content_type = b"", 200, "text/html"
if (fn:={"/":"index", "/profiler":"perfetto"}.get((url:=urlparse(self.path)).path)):
if (fn:={"/":"index", "/profiler":"perfetto", "/chrome":"chrome"}.get((url:=urlparse(self.path)).path)):
with open(os.path.join(os.path.dirname(__file__), f"{fn}.html"), "rb") as f: ret = f.read()
elif self.path.startswith(("/assets/", "/js/")) and '/..' not in self.path:
try: