v1.5.17
版本发布时间: 2023-01-02 07:48:11
plasma-umass/scalene最新发布版本:v1.5.44.1(2024-08-22 23:16:15)
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 (https://github.com/plasma-umass/scalene/pull/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 https://github.com/plasma-umass/scalene/pull/513
- Fix C should_trace to support OS-specific path separators by @emeryberger in https://github.com/plasma-umass/scalene/pull/521
- Eliminates binary file reading/writing and dependency on linecache. by @emeryberger in https://github.com/plasma-umass/scalene/pull/522
- Disable Windows switching of on/off status of profiling for background processes by @emeryberger in https://github.com/plasma-umass/scalene/pull/523
- Fixed some Win32 issues. by @emeryberger in https://github.com/plasma-umass/scalene/pull/524
Full Changelog: https://github.com/plasma-umass/scalene/compare/v1.5.16...v1.5.17