Discover and explore top open-source AI tools and projects—updated daily.
plasma-umassPython profiler with AI-powered optimization proposals
Top 3.8% on SourcePulse
Scalene is a high-performance Python profiler designed to identify performance bottlenecks across CPU, GPU, and memory usage. It offers unparalleled detail and speed compared to many existing profilers, with the unique addition of AI-powered optimization suggestions. This tool is invaluable for developers seeking to optimize Python applications, from individual functions to entire codebases.
How It Works
Scalene employs a sampling-based approach rather than instrumentation, resulting in significantly lower overhead (typically 10-20%). It meticulously separates time spent in Python code from time spent in native libraries and system calls, allowing developers to focus optimization efforts effectively. For memory profiling, it utilizes a specialized memory allocator to track usage per line and identify potential leaks or excessive copying.
Quick Start & Requirements
pip install -U scalene or conda install -c conda-forge scalenescalene your_prog.pyHighlighted Details
Maintenance & Community
Licensing & Compatibility
--noreload), and gevent (with monkey patching). PyTorch compatibility on Mac may require specific versions due to known issues.Limitations & Caveats
The Windows version has limitations, excluding memory and copy profiling. Newer PyTorch versions on macOS may experience compatibility issues. AI suggestions require an external API key and incur costs.
19 hours ago
1 day
microsoft
ELS-RD
mryab
tile-ai
gpu-mode