scalene
by Community
Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals
OSS
scalene
Added 1 June 2026
Overview
Scalene is a CPU, GPU, and memory profiler for Python that measures code performance with per-line granularity. It identifies bottlenecks across processor types and memory usage, then suggests optimizations based on profiling data.
Best for
Best for
Python developers optimizing computationally intensive or memory-heavy applications who need precise per-line performance visibility.
Use cases
- Identify which lines consume most CPU or GPU time in data processing scripts
- Detect memory leaks and excessive allocation in long-running applications
- Compare performance across CPU vs GPU execution paths
Notes
Scalene is a CPU, GPU, and memory profiler for Python that measures code performance with per-line granularity. It identifies bottlenecks across processor types and memory usage, then suggests optimizations based on profiling data.
13,436 stars on GitHub. Last updated 2026-05-31. Licensed Apache-2.0.
Use cases
- Identify which lines consume most CPU or GPU time in data processing scripts
- Detect memory leaks and excessive allocation in long-running applications
- Compare performance across CPU vs GPU execution paths
Pros
- Profiles CPU, GPU, and memory in a single tool without heavy instrumentation overhead
- Line-level granularity shows exactly where time and memory are spent
- Active open source project with 13k+ stars and community support
Cons
- Python-only, cannot profile code in other languages or system libraries written in C
- Optimization suggestions depend on profiling data quality and may require manual interpretation
- GPU profiling support varies by hardware and CUDA availability
Indexed from awesome-llmops and enriched against its public facts.
Pros
- Profiles CPU, GPU, and memory in a single tool without heavy instrumentation overhead
- Line-level granularity shows exactly where time and memory are spent
- Active open source project with 13k+ stars and community support
Cons
- Python-only, cannot profile code in other languages or system libraries written in C
- Optimization suggestions depend on profiling data quality and may require manual interpretation
- GPU profiling support varies by hardware and CUDA availability
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
PyTorch
Community
Tensors and Dynamic neural networks in Python with strong GPU acceleration
TensorFlow
Community
An Open Source Machine Learning Framework for Everyone
scikit-learn
Community
scikit-learn: machine learning in Python