What's Changed
Enhancements
- Scalene now incorporates AI-powered optimization suggestions. To enable these, you need to enter an OpenAI key:
Once a valid key is entered, click on the lightning bolt (⚡) beside any line to generate a proposed optimization.
You can click as many times as you like on the lightning bolt, and it will generate different suggested optimizations.
Your mileage may vary, but in some cases, the suggestions are quite impressive. While this is currently limited to optimizing a single
line, we anticipate broadening this to groups of lines or even functions in the near future. To our knowledge, this is the first
integration of AI into profilers. It's a brave new world.
- The web UI now incorporates collapsible profiles to web GUI (#527). You can now
toggle the displayed lines of code (all or reduced), and show/hide individual files.
Bug fixes
- Improved logic for filtering out Python libraries from results.
- Added sorting to memory sample intake, made JSON work with subprocesses by @sternj in #513
- Fix C should_trace to support OS-specific path separators by @emeryberger in #521
- Eliminates binary file reading/writing and dependency on linecache. by @emeryberger in #522
- Disable Windows switching of on/off status of profiling for background processes by @emeryberger in #523
- Fixed some Win32 issues. by @emeryberger in #524
Full Changelog: v1.5.16...v1.5.17