Releases: plasma-umass/scalene
Maintenance release with bugfixes and performance improvements
What's Changed
- Refined attribution approach for C vs. Python by @emeryberger in #1001
- Fix Python 3.14 compatibility for eval()/exec() keyword arguments by @emeryberger in #1002
- Fix memory explosion and extreme slowness during profiling by @emeryberger in #1004
Full Changelog: v2.1.3...v2.1.4
Improved attribution, off-line mode, and fix for Jupyter
What's Changed
- Fix loop backward-jump sampling bias with even redistribution by @emeryberger in #995
- Fix Google Analytics loading delay in offline/standalone mode by @Copilot in #996
- Fixed Jupyter magics. by @emeryberger in #997
Full Changelog: v2.1.2...v2.1.3
v2.1.2
What's Changed
Bug Fixes
- Fix Windows CPU profiling extreme slowness and memory explosion (#992): The v2.1 Windows timer loop hardcoded a 1ms sampling interval regardless of the configured rate (default 10ms), generating ~10x more samples than intended and reducing
sys.setswitchintervalto 1ms causing excessive GIL contention. Now uses the actual configured sampling rate.
Improvements
- Bound memory footprint samples with reservoir sampling (#993): Replace unbounded list accumulation of memory footprint samples with
sorted_reservoir(Vitter reservoir sampling), capping memory at O(k) instead of O(n) where n is the number of malloc/free events. Eliminates unbounded memory growth during long profiling runs.
Full Changelog: v2.1.1...v2.1.2
Improves JAX and TensorFlow support; fixes Windows issue
What's Changed
- Add library profiler infrastructure for JAX and TensorFlow by @emeryberger in #990
- Removes stray debug statements on Windows.
Full Changelog: v2.1.0...v2.1.1
Numerous updates and bug fixes
UI, Frontend & Visualization
- Convert scalene-gui JavaScript to TypeScript by @emeryberger in #970
- Add Google Gemini provider, environment variable support, and UI modernization by @emeryberger in #973
- Vendor assets locally for offline HTML viewer support by @emeryberger in #983
- Add per-file display mode dropdown for profile filtering (fixes #813) by @emeryberger in #989
LLM / API Provider Support
- Add support for OpenAI-compatible API servers and Anthropic (fixes #918) by @emeryberger in #971
- Add Google Gemini provider, environment variable support, and UI modernization by @emeryberger in #973
CPU & Core Profiling Engine
- Optimize CPU profiling instrumentation by @emeryberger in #988
- Fix crash when frame.f_lineno is None in Python 3.11+ by @emeryberger in #976
Multiprocessing, Exec, and Runtime Compatibility
- Fix multiprocessing spawn mode support (#873) by @emeryberger in #984
- Fix multiprocessing spawn mode sys.argv handling (#846) by @emeryberger in #986
- Add profiling support for exec'd code (fixes #824) by @emeryberger in #987
- Fix signal conflict crash with PyTorch Lightning and similar libraries by @emeryberger in #977
PyTorch & JIT Integration
- Add PyTorch JIT profiling support (fixes #908) by @emeryberger in #972
GPU & Apple Silicon
- Add per-process MPS GPU profiling for Apple Silicon by @emeryberger in #974
Windows Support & Reliability
- Improve Windows memory profiling error messages and documentation by @emeryberger in #978
- Fix Windows CPU profiling not collecting samples by @emeryberger in #980
Notebook & Editor Integration
- Fix Jupyter notebook display in VSCode (fixes #951) by @emeryberger in #969
v2.0.1
Trigger re-build to produce libscalene.dll.
Major new release: Windows memory profiling support, improved CLI, and performance optimizations
What's Changed
- Fix for pickling support (multiprocessing issue on Windows) by @emeryberger in #954
- CI update to 3.14 by @emeryberger in #955
- Restore 3.8 support by @emeryberger in #958
- Fixed formatting of CLI help. by @emeryberger in #962
- Overhauled CLI. by @emeryberger in #963
- Windows memory profiling by @emeryberger in #965
- Initial sys.monitoring approach for memory profiling. by @emeryberger in #966
- Refactor scalene_profiler.py into modular components by @emeryberger in #967
Full Changelog: v1.5.55...v2.0.0
Maintenance release for Windows
What's Changed
- Fix signal timer resetting by @sternj in #946
- Cleanup; fixes #947. by @emeryberger in #948
- Removed unused methods and variables. by @emeryberger in #949
- Removed cruft, privatized more methods. by @emeryberger in #950
Full Changelog: v1.5.54...v1.5.55
Compatibility with 3.14; bug fixes, improved CPU/GPU profiling
This release adds 3.14 compatibility, uses a more robust CPU/GPU sampling approach to avoid pathological behavior when the sampling rate aliases native execution epochs, and incorporates a prototype enhanced support for profiling certain Neuron workloads (mostly due to @nehamur). It also includes some bug fixes. Beyond that, the main scalene_profiler.py code has been significantly refactored to make it more manageable, and all code is now mypy and ruff "clean"; both linters are now part of the CI pipeline.
What's Changed
- Fixes a line-level attribution bug when using
@profileby @emeryberger - Py314 update by @emeryberger in #934
- Add neuron profiling support to Scalene GUI and profiler by @nehamur in #935
- Typed dict for arguments, fixing a bug by @emeryberger in #937
- Refactor scalene_profiler.py to improve modularity and reduce complexity by @Copilot in #938
- Cpu Timestamp + Visualization Changes by @nehamur in #940
- Random time samples added to GUI by @nehamur in #942
- Geometric sampling update by @emeryberger in #943
New Contributors
Full Changelog: v1.5.53...v1.5.54
Updated models, numerous minor fixes
What's Changed
- Updated AI models for OpenAI and Amazon Bedrock by @emeryberger
- Import
ctypesearly by @emeryberger in #907 - Removed dep on wheel by @emeryberger in #912
- Handle latest versions of IPython by @emeryberger in #916
- Fix module import issues for deeply nested modules (e.g., x.y.z). by @glebarez in #903
- Refactoring, more Pydantic by @emeryberger in #921
- fix_args_list_if_none by @yastcher in #923
- Fix for overwriting LD_PRELOAD if it contains libscalene.so and other values by @elesiuta in #925
New Contributors
- @glebarez made their first contribution in #903
- @yastcher made their first contribution in #923
- @elesiuta made their first contribution in #925
Full Changelog: v1.5.52...v1.5.53