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

25
apps/trace/app.js Normal file
View File

@@ -0,0 +1,25 @@
async function main() {
let speedscope_js = await utf8Decode(getFile('speedscope/speedscope-432XE7GS.js'));
speedscope_js = speedscope_js.replace(/alert\(`Cannot load.*?return/, '');
app.setDocument(`
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>speedscope</title>
<link rel="stylesheet" href="speedscope/speedscope-GHPHNKXC.css">
</head>
<body>
<script>
delete window.localStorage;
window.location.hash = '#profileURL=${core.url}../../trace';
</script>
<script>${speedscope_js}</script>
</body>
</html>
`);
}
main();