Scalene

Latest version: v1.5.42.2

Safety actively analyzes 642283 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 11

1.5.19

What's Changed
* Proposed optimizations now can be applied to identified regions (loops or functions) instead of just individual lines by emeryberger in https://github.com/plasma-umass/scalene/pull/534

**Full Changelog**: https://github.com/plasma-umass/scalene/compare/v1.5.18...v1.5.19

1.5.18

Changed case of Cython in dependency to work with case-sensitive filesystems. Also includes minor UI tweaks.

1.5.17

What's Changed

Enhancements

* Scalene now incorporates AI-powered optimization suggestions. To enable these, you need to enter an [OpenAI key](https://openai.com/api/):

<img width="411" alt="Screenshot 2023-01-01 at 6 36 40 PM" src="https://user-images.githubusercontent.com/1612723/210187555-d9334cf4-251b-425e-8a07-261441805591.png">

Once a valid key is entered, click on the lightning bolt (⚡) beside any line to generate a proposed optimization.

<img width="590" alt="Screenshot 2023-01-01 at 6 39 12 PM" src="https://user-images.githubusercontent.com/1612723/210187583-290b94f5-52fe-40c9-8725-8f5109552646.png">

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.

<img width="862" alt="Screenshot 2023-01-01 at 6 44 13 PM" src="https://user-images.githubusercontent.com/1612723/210187678-91b68d05-0910-4508-9e8f-8caab77c0f9d.png">

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

1.5.16

What's Changed
Enhancements
* Memory profiling now occasionally **much** faster: reimplemented `settrace` callback in C by sternj (https://github.com/plasma-umass/scalene/pull/479, https://github.com/plasma-umass/scalene/pull/492, https://github.com/plasma-umass/scalene/pull/494)
* Incorporates ([RDP](https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm)) algorithm to compress visualizations without sacrificing overall shape by emeryberger
* Uses local fork of [crdp](https://github.com/plasma-umass/crdp) to include its dependency on Cython
* Improves time and space reporting logic for units (e.g., `ms`, `s`, `m`) by emeryberger (https://github.com/plasma-umass/scalene/commit/2041b10cfaf63363fe4792c05470e06c9d3ebe81)

Bug fixes
* Fixes an install issue that required pre-installation of Cython by emeryberger, thanks to help from SnoopJ (https://github.com/plasma-umass/scalene/commit/a830fd2fbc9b36acb4c762265e7fb4175f41f1b9)
* Fixes an issue bringing up the web browser on some platforms by emeryberger
* Fixes an issue running Scalene on Windows by emeryberger (esp. https://github.com/plasma-umass/scalene/commit/8877e221dd42b6d57d61a69370340b5071c67847)
* Fixes an issue running Scalene with older GPUs by emeryberger (https://github.com/plasma-umass/scalene/commit/c1aa3cb47e2650ac6d482013acc9ec5107ac631e)

Other
* Now builds wheel for Python 3.11 by jaltmayerpizzorno (https://github.com/plasma-umass/scalene/commit/52247f7fc05e68da9c5ee9dec85056ffcb962c9c, https://github.com/plasma-umass/scalene/commit/df26dc2f84e85c233f3971bfa136e08ec9c42237)
* Removed install-time dependency on `wheel` by emeryberger (https://github.com/plasma-umass/scalene/commit/ad4da28e659911dc0e64e904d26138341a57aef1)

**Full Changelog**: https://github.com/plasma-umass/scalene/compare/v1.5.15...v1.5.16

1.5.15

What's Changed
* Now generates HTML instead of using a web server by emeryberger in https://github.com/plasma-umass/scalene/pull/477
* Clearer command-line parameters (`--cpu`, `--gpu`, and `--memory`) by emeryberger in https://github.com/plasma-umass/scalene/pull/477
* Improved multiprocessing and module support by RuRo in https://github.com/plasma-umass/scalene/pull/484
* Fixes several issues running Scalene on Windows by emeryberger

New Contributors
* RuRo made their first contribution in https://github.com/plasma-umass/scalene/pull/484

**Full Changelog**: https://github.com/plasma-umass/scalene/compare/v1.5.14...v1.5.15

1.5.14

Changes in this release:

Bug fixes:
- Disabled GPU profiling for very old NVIDIA platforms that don't support profiling utilization and/or memory consumption; this used to lead to failures
- More graceful handling of non source files (which could lead to failures)
- Uses correct path regardless of changes to the working directory

UI:
- forced profiles in Jupyter cells to consume 100% of the available width
- minor usability fix for Jupyter, fixing an issue with `%scrun`

**Full Changelog**: https://github.com/plasma-umass/scalene/compare/v1.5.13...v1.5.14

Page 6 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.