diff --git a/tinygrad/viz/js/profiler.js b/extra/profiler/index.html similarity index 73% rename from tinygrad/viz/js/profiler.js rename to extra/profiler/index.html index da38b2edb5..637d02d19c 100644 --- a/tinygrad/viz/js/profiler.js +++ b/extra/profiler/index.html @@ -1,3 +1,78 @@ + + + + tinygrad profiler + + + + + + + + + + diff --git a/tinygrad/viz/profiler.html b/tinygrad/viz/profiler.html deleted file mode 100644 index f10a73c617..0000000000 --- a/tinygrad/viz/profiler.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - tinygrad profiler - - - - - - - - - - diff --git a/tinygrad/viz/serve.py b/tinygrad/viz/serve.py index d33952b26f..f241be0e6d 100755 --- a/tinygrad/viz/serve.py +++ b/tinygrad/viz/serve.py @@ -135,7 +135,7 @@ class Handler(BaseHTTPRequestHandler): def do_GET(self): ret, status_code, content_type = b"", 200, "text/html" - if (fn:={"/":"index", "/profiler":"perfetto", "/prof":"profiler"}.get((url:=urlparse(self.path)).path)): + if (fn:={"/":"index", "/profiler":"perfetto"}.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: