Expand description
Local HTTP server for serving EVM profiles to speedscope.app.
This module implements a temporary local HTTP server that:
- Serves the profile JSON at
/{token}/profile.json - Sets CORS headers to allow the viewer to fetch it
- Constructs the proper URL and opens it in the browser
Structsยง
- Server
State ๐
Functionsยง
- generate_
token ๐ - Generates a random token for the URL path (32 hex characters).
- percent_
encode ๐ - Percent-encode a URL for embedding in viewer URL parameters.
- serve_
and_ open - Serves a profile on a local HTTP server and opens it in the browser.
- serve_
profile ๐