Overview
Scalene is a high-performance profiler for Python programs, providing detailed measurements of CPU, GPU, and memory usage. The official claim states an overhead of 10 to 20 percent.
Core Features
- Multi-dimensional profiling: Measures CPU, GPU, and memory usage at both line and function levels.
- Precise separation: Distinguishes Python execution time from time spent in native libraries, aiding bottleneck identification.
- I/O bottleneck detection: Flags I/O issues by measuring system time.
- Memory analysis: Supports per-line allocation tracking, automatic leak detection, and copy volume evaluation.
- GPU support: Available on NVIDIA systems for GPU profiling.
- Concurrency support: Works with multiprocessing, threading, and free-threaded Python 3.13t/3.14t.
Tech Stack and License
The primary language is Python, and the project is licensed under Apache-2.0.
Getting Started
As the README summary does not provide specific installation or usage steps, please refer to the project GitHub page for detailed documentation.










Comments
No comments yet
Be the first to comment