core: Move speedscope into a trace app. Isolate all the things.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 10m11s

This commit is contained in:
2025-11-23 20:08:51 -05:00
parent 716bce2bb0
commit 7c7857a6cd
23 changed files with 40 additions and 6 deletions

View File

@@ -965,7 +965,6 @@ tf_http_t* tf_httpd_create(JSContext* context)
tf_http_add_handler(http, "/codemirror/*", tf_httpd_endpoint_static, NULL, task);
tf_http_add_handler(http, "/lit/*", tf_httpd_endpoint_static, NULL, task);
tf_http_add_handler(http, "/prettier/*", tf_httpd_endpoint_static, NULL, task);
tf_http_add_handler(http, "/speedscope/*", tf_httpd_endpoint_static, NULL, task);
tf_http_add_handler(http, "/static/*", tf_httpd_endpoint_static, NULL, task);
tf_http_add_handler(http, "/.well-known/*", tf_httpd_endpoint_static, NULL, task);
tf_http_add_handler(http, "/&*.sha256", _httpd_endpoint_add_slash, NULL, task);

View File

@@ -138,7 +138,6 @@ void tf_httpd_endpoint_static(tf_http_request_t* request)
{ "/lit/", "deps/lit/" },
{ "/codemirror/", "deps/codemirror/" },
{ "/prettier/", "deps/prettier/" },
{ "/speedscope/", "deps/speedscope/" },
{ "/.well-known/", "data/global/.well-known/" },
};

View File

@@ -151,6 +151,14 @@ static void _tf_ssb_import_recursive_add_files(tf_ssb_t* ssb, uv_loop_t* loop, J
tf_free(blob);
tf_free(full_path);
}
else if (ent.type == UV_DIRENT_DIR)
{
size_t len = strlen(path) + strlen(ent.name) + 2;
char* full_path = tf_malloc(len);
snprintf(full_path, len, "%s/%s", path, ent.name);
_tf_ssb_import_recursive_add_files(ssb, loop, context, files, root, full_path);
tf_free(full_path);
}
}
}
else