Scalene
github.com
- Free plan
- Windows
- macOS
- Linux
- Web
- Browser extension
What Scalene is
Scalene is a free, open-source profiler for Python programs. It measures CPU, GPU and memory use and offers AI-powered optimization proposals. Reports work at line and function level, separating Python time from native-code and system time. Memory views show per-line use, distinguish Python from native allocations and identify lines that may contain memory leaks. GPU profiling reports time on NVIDIA-based systems. For asynchronous programs, Scalene attributes wall-clock await time to the suspended coroutine line and reports mean and peak concurrent waiters. Its graphical interface can show stitched Python and native call stacks, memory flame charts and a timeline. You can use Scalene from the command line, web GUI, Visual Studio Code extension or Jupyter notebooks. The web interface processes profiles locally and works offline. Listed installation platforms include macOS, Linux, Windows and Windows Subsystem for Linux 2. The project lists Apache-2.0 licensing and typical profiling overhead of no more than 10–20%.
Who it suits
Scalene suits Python developers who need CPU, memory, GPU or asynchronous performance details across desktop tools, notebooks or a local web interface.
Good to know, and what to watch
- Line- and function-level performance reports
- Separates Python, native and system time
- Identifies likely memory-leak lines
- Supports GPU profiling on NVIDIA systems
- Works through CLI, GUI, VS Code and Jupyter
- GPU profiling is limited to NVIDIA-based systems
- Windows troubleshooting may require Visual C++ Redistributable
- AI suggestions require a supported provider
- Profiling adds typically 10–20% overhead
Plans
Every plan and priceScalene
Open source
The verdict
Scalene gives Python teams detailed CPU, memory, GPU and async profiling in several interfaces without a license fee. Its platform notes and provider requirements matter when planning Windows or AI-assisted workflows.
What the maker publishes
- AI providers
- For optimization suggestions, Scalene lists Amazon Bedrock, Microsoft Azure, OpenAI, and local models via Ollama as supported providers. source
- Async profiling
- Async profiling attributes wall-clock await time to the line where a coroutine is suspended and reports mean and peak concurrent waiters. source
- Detailed profiling
- It reports performance at line and function level and separates Python time from native-code and system time. source
- GPU support
- GPU profiling reports time on NVIDIA-based systems. source
- Install platforms
- The project lists macOS, Linux, Windows, and Windows Subsystem for Linux 2 as supported installation platforms. source
- Interfaces
- Scalene can be used from the command line, a web-based GUI, a Visual Studio Code extension, or Jupyter notebooks. source
- License
- The repository identifies its license as Apache-2.0. source
- Local processing
- The web interface processes profiles locally and works offline; the project says API keys passed from environment variables are sent only to the local browser session and are never written into the HTML file. source
- Memory analysis
- It reports per-line memory use, distinguishes Python from native allocations, and identifies lines with likely memory leaks. source
- Performance overhead
- The README says profiling overhead is typically no more than 10–20%, and often less. source
- Purpose
- Scalene profiles Python programs for CPU, GPU, and memory use and provides AI-powered optimization proposals. source
- Stack views
- Its GUI can display stitched Python and native call stacks, memory flame charts, and a timeline. source
- Support
- The project links to a Scalene community Slack for community discussion. source
- Windows note
- Starting with Scalene 2.0, Windows supports full memory profiling; troubleshooting may require the Visual C++ Redistributable. source
Checked against the maker's pages on 4 Oct 2026.