core: Move speedscope into a trace app. Isolate all the things.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 10m11s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 10m11s
This commit is contained in:
25
apps/trace/app.js
Normal file
25
apps/trace/app.js
Normal 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();
|
||||
Reference in New Issue
Block a user