mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 23:48:01 -05:00
3687
tinygrad/viz/chrome.html
Normal file
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
107690
tinygrad/viz/js/tracing.js
Normal file
File diff suppressed because one or more lines are too long
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user