Instead of configuring a local setup, you can also use GitHub Codespaces, a cloud-based development environment with minimal setup.
You can create a new Codespace directly from the repository:
- Navigate to the Firefox Profiler repository
- Click the green
Codebutton - Click on the
Codespacestab - Click
Create codespace on main(or on your branch)
GitHub will automatically:
- Create a new development environment
- Install all dependencies using
yarn install - Start the development server on port 4242
Once the Codespace is ready, GitHub will automatically forward port 4242. You'll see a notification that a service is available on this port.
- Click
Open in Browserto open the profiler UI in a new tab - Alternatively, you can access forwarded ports from the
PORTStab at the bottom of the VS Code interface
If you want to load profiles for development, you can follow the steps described in Loading in profiles for development section.
You can create a Codespace for any branch or pull request:
- Navigate to the branch or pull request you want to work on
- Click the
Codebutton - Select the
Codespacestab - Click
Create codespace on [branch-name]
You can also create and manage Codespaces using the GitHub CLI:
# Create a new codespace
gh codespace create --repo firefox-devtools/profiler
# List your codespaces
gh codespace list
# Connect to a codespace
gh codespace codeThe Codespace is configured using the .devcontainer/devcontainer.json file in the repository. This includes:
- Node.js environment
- Automatic port forwarding for port 4242
- Pre-installed VS Code extensions (ESLint, Prettier, Stylelint)
- Automatic dependency installation and server startup