
scalene
High-performance, high-precision CPU, GPU, and memory profiler for Python.

About scalene
Scalene is an open source profiler for Python programs that measures CPU, GPU, and memory use. According to its project documentation, it runs much faster than many other Python profilers while producing more detailed information. It can be used from the command line, through a Visual Studio Code extension, or through a web-based viewer.
Scalene can also generate AI-proposed optimizations for a selected line or region of code. Users choose an AI provider, which may be Amazon Bedrock, Microsoft Azure, OpenAI, or a local model run with Ollama, and enter credentials if the provider requires them. The project notes that suggestions vary between runs and that results may differ.
Key features
- Profiles CPU, GPU, and memory usage of Python programs
- Generates AI-proposed optimizations for a selected line or code region
- Supports Amazon Bedrock, Microsoft Azure, OpenAI, and Ollama for suggestions
- Can read API keys from environment variables for a local viewing session
- Command-line output options include terminal, HTML, and standalone HTML
- Visual Studio Code extension that displays a profile in a webview
- Described by the project as faster than many other Python profilers while giving more detailed information
- Open source
- Supports local models through Ollama as an option for AI suggestions
- AI suggestions require selecting a provider and entering credentials, and cloud providers involve external services
- The project notes that suggestions vary and that results may differ between runs
- In the VS Code extension, a profile appears only if the code runs for at least a second
scalene at a glance
- Category
- Development › Developer Tools
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
Guides for Developer Tools
scalene alternatives
Tools and sites you could use instead, ranked by how closely they match.
Tracy Profiler collects real-time, nanosecond-resolution telemetry and frame performance data.
React Native Vision Camera is a high-performance camera library for React Native apps.
Audit websites for performance metrics and best practices with Lighthouse, an automated web quality tool.
Apache Hama was a big data and high-performance computing project that has retired.
Annoy provides approximate nearest-neighbor search in C++ and Python with memory-focused storage options.
Gito uses language models to review GitHub code for high impact issues such as vulnerabilities, bugs, and maintainability concerns.
Popular in Developer Tools
Well-known listings from the same topic.
scalene FAQ
How do I enable AI-powered optimization suggestions?
Are API keys saved in the profile file?
How can Scalene be installed?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.












