scalene


Namescalene JSON
Version 1.5.48 PyPI version JSON
download
home_pageNone
SummaryScalene: A high-resolution, low-overhead CPU, GPU, and memory profiler for Python with AI-powered optimization suggestions
upload_time2024-11-13 19:33:02
maintainerNone
docs_urlNone
authorNone
requires_python!=3.11.0,>=3.8
licenseNone
keywords performance profiler optimization cpu gpu memory llm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![scalene](https://github.com/plasma-umass/scalene/raw/master/docs/scalene-icon-white.png)

# Scalene: a Python CPU+GPU+memory profiler with AI-powered optimization proposals

by [Emery Berger](https://emeryberger.com), [Sam Stern](https://samstern.me/), and [Juan Altmayer Pizzorno](https://github.com/jaltmayerpizzorno).

[![Scalene community Slack](https://github.com/plasma-umass/scalene/raw/master/docs/images/slack-logo.png)](https://join.slack.com/t/scaleneprofil-jge3234/shared_invite/zt-110vzrdck-xJh5d4gHnp5vKXIjYD3Uwg)[Scalene community Slack](https://join.slack.com/t/scaleneprofil-jge3234/shared_invite/zt-110vzrdck-xJh5d4gHnp5vKXIjYD3Uwg)

[![PyPI Latest Release](https://img.shields.io/pypi/v/scalene.svg)](https://pypi.org/project/scalene/)[![Anaconda-Server Badge](https://img.shields.io/conda/v/conda-forge/scalene)](https://anaconda.org/conda-forge/scalene) [![Downloads](https://static.pepy.tech/badge/scalene)](https://pepy.tech/project/scalene)[![Anaconda downloads](https://img.shields.io/conda/d/conda-forge/scalene?logo=conda)](https://anaconda.org/conda-forge/scalene) [![Downloads](https://static.pepy.tech/badge/scalene/month)](https://pepy.tech/project/scalene) ![Python versions](https://img.shields.io/pypi/pyversions/scalene.svg?style=flat-square)[![Visual Studio Code Extension version](https://img.shields.io/visual-studio-marketplace/v/emeryberger.scalene?logo=visualstudiocode)](https://marketplace.visualstudio.com/items?itemName=EmeryBerger.scalene) ![License](https://img.shields.io/github/license/plasma-umass/scalene)

![Ozsvald tweet](https://github.com/plasma-umass/scalene/raw/master/docs/Ozsvald-tweet.png)

(tweet from Ian Ozsvald, author of [_High Performance Python_](https://smile.amazon.com/High-Performance-Python-Performant-Programming/dp/1492055026/ref=sr_1_1?crid=texbooks))

![Semantic Scholar success story](https://github.com/plasma-umass/scalene/raw/master/docs/semantic-scholar-success.png)

***Scalene web-based user interface:*** [http://plasma-umass.org/scalene-gui/](http://plasma-umass.org/scalene-gui/)
 
## About Scalene

Scalene is a high-performance CPU, GPU *and* memory profiler for
Python that does a number of things that other Python profilers do not
and cannot do.  It runs orders of magnitude faster than many other
profilers while delivering far more detailed information. It is also
the first profiler ever to incorporate AI-powered proposed
optimizations.

### AI-powered optimization suggestions

> **Note**
>
> To enable AI-powered optimization suggestions, you need to enter an [OpenAI key](https://openai.com/api/) in the box under "Advanced options". _Your account will need to have a positive balance for this to work_ (check your balance at https://platform.openai.com/account/usage).
>
> <img width="487" alt="Scalene advanced options" src="https://user-images.githubusercontent.com/1612723/211639253-ec926b38-3efe-4a20-8514-e10dde94ec01.png">

Once you've entered your OpenAI key (see above), click on the lightning bolt (⚡) beside any line or the explosion (💥) for an entire region of code to generate a proposed optimization. Click on a proposed optimization to copy it to the clipboard.

<img width="571" alt="example proposed optimization" src="https://user-images.githubusercontent.com/1612723/211639968-37cf793f-3290-43d1-9282-79e579558388.png">

You can click as many times as you like on the lightning bolt or explosion, and it will generate different suggested optimizations. Your mileage may vary, but in some cases, the suggestions are quite impressive (e.g., order-of-magnitude improvements). 
  
### Quick Start

#### Installing Scalene:

```console
python3 -m pip install -U scalene
```

or

```console
conda install -c conda-forge scalene
```

#### Using Scalene:

After installing Scalene, you can use Scalene at the command line, or as a Visual Studio Code extension.

<details>
  <summary>
    Using the Scalene VS Code Extension:
  </summary>
  

First, install <a href="https://marketplace.visualstudio.com/items?itemName=EmeryBerger.scalene">the Scalene extension from the VS Code Marketplace</a> or by searching for it within VS Code by typing Command-Shift-X (Mac) or Ctrl-Shift-X (Windows). Once that's installed, click Command-Shift-P or Ctrl-Shift-P to open the <a href="https://code.visualstudio.com/docs/getstarted/userinterface">Command Palette</a>. Then select <b>"Scalene: AI-powered profiling..."</b> (you can start typing Scalene and it will pop up if it's installed). Run that and, assuming your code runs for at least a second, a Scalene profile will appear in a webview.
  
<img width="734" alt="Screenshot 2023-09-20 at 7 09 06 PM" src="https://github.com/plasma-umass/scalene/assets/1612723/7e78e3d2-e649-4f02-86fd-0da2a259a1a4">

</details>

<details>
<summary>
Commonly used command-line options:
</summary>

```console
scalene your_prog.py                             # full profile (outputs to web interface)
python3 -m scalene your_prog.py                  # equivalent alternative

scalene --cli your_prog.py                       # use the command-line only (no web interface)

scalene --cpu your_prog.py                       # only profile CPU
scalene --cpu --gpu your_prog.py                 # only profile CPU and GPU
scalene --cpu --gpu --memory your_prog.py        # profile everything (same as no options)

scalene --reduced-profile your_prog.py           # only profile lines with significant usage
scalene --profile-interval 5.0 your_prog.py      # output a new profile every five seconds

scalene (Scalene options) --- your_prog.py (...) # use --- to tell Scalene to ignore options after that point
scalene --help                                   # lists all options
```

</details>

<details>
<summary>
Using Scalene programmatically in your code:
</summary>

Invoke using `scalene` as above and then:

```Python
from scalene import scalene_profiler

# Turn profiling on
scalene_profiler.start()

# your code

# Turn profiling off
scalene_profiler.stop()
```

```Python
from scalene.scalene_profiler import enable_profiling

with enable_profiling():
    # do something
```

</details>

<details>
<summary>
Using Scalene to profile only specific functions via <code>@profile</code>:
</summary>

Just preface any functions you want to profile with the `@profile` decorator and run it with Scalene:

```Python
# do not import profile!

@profile
def slow_function():
    import time
    time.sleep(3)
```

</details>

#### Web-based GUI

Scalene has both a CLI and a web-based GUI [(demo here)](http://plasma-umass.org/scalene-gui/).

By default, once Scalene has profiled your program, it will open a
tab in a web browser with an interactive user interface (all processing is done
locally). Hover over bars to see breakdowns of CPU and memory
consumption, and click on underlined column headers to sort the
columns. The generated file `profile.html` is self-contained and can be saved for later use.

[![Scalene web GUI](https://raw.githubusercontent.com/plasma-umass/scalene/master/docs/scalene-gui-example.png)](https://raw.githubusercontent.com/plasma-umass/scalene/master/docs/scalene-gui-example-full.png)


## Scalene Overview

### Scalene talk (PyCon US 2021)

[This talk](https://youtu.be/5iEf-_7mM1k) presented at PyCon 2021 walks through Scalene's advantages and how to use it to debug the performance of an application (and provides some technical details on its internals). We highly recommend watching this video!

[![Scalene presentation at PyCon 2021](https://raw.githubusercontent.com/plasma-umass/scalene/master/docs/images/scalene-video-img.png)](https://youtu.be/5iEf-_7mM1k "Scalene presentation at PyCon 2021")

### Fast and Accurate

- Scalene is **_fast_**. It uses sampling instead of instrumentation or relying on Python's tracing facilities. Its overhead is typically no more than 10-20% (and often less).

- Scalene is **accurate**. We tested CPU profiler accuracy and found that Scalene is among the most accurate profilers, correctly measuring time taken.

![Profiler accuracy](https://github.com/plasma-umass/scalene/raw/master/docs/cpu-accuracy-comparison.png)

- Scalene performs profiling **_at the line level_** _and_ **_per function_**, pointing to the functions and the specific lines of code responsible for the execution time in your program.

### CPU profiling

- Scalene **separates out time spent in Python from time in native code** (including libraries). Most Python programmers aren't going to optimize the performance of native code (which is usually either in the Python implementation or external libraries), so this helps developers focus their optimization efforts on the code they can actually improve.
- Scalene **highlights hotspots** (code accounting for significant percentages of CPU time or memory allocation) in red, making them even easier to spot.
- Scalene also separates out **system time**, making it easy to find I/O bottlenecks.

### GPU profiling

- Scalene reports **GPU time** (currently limited to NVIDIA-based systems).

### Memory profiling

- Scalene **profiles memory usage**. In addition to tracking CPU usage, Scalene also points to the specific lines of code responsible for memory growth. It accomplishes this via an included specialized memory allocator.
- Scalene separates out the percentage of **memory consumed by Python code vs. native code**.
- Scalene produces **_per-line_ memory profiles**.
- Scalene **identifies lines with likely memory leaks**.
- Scalene **profiles _copying volume_**, making it easy to spot inadvertent copying, especially due to crossing Python/library boundaries (e.g., accidentally converting `numpy` arrays into Python arrays, and vice versa).

### Other features

- Scalene can produce **reduced profiles** (via `--reduced-profile`) that only report lines that consume more than 1% of CPU or perform at least 100 allocations.
- Scalene supports `@profile` decorators to profile only specific functions.
- When Scalene is profiling a program launched in the background (via `&`), you can **suspend and resume profiling**.

# Comparison to Other Profilers

## Performance and Features

Below is a table comparing the **performance and features** of various profilers to Scalene.

![Performance and feature comparison](https://raw.githubusercontent.com/plasma-umass/scalene/master/docs/images/profiler-comparison.png)

- **Slowdown**: the slowdown when running a benchmark from the Pyperformance suite. Green means less than 2x overhead. Scalene's overhead is just a 35% slowdown.

Scalene has all of the following features, many of which only Scalene supports:

- **Lines or functions**: does the profiler report information only for entire functions, or for every line -- Scalene does both.
- **Unmodified Code**: works on unmodified code.
- **Threads**: supports Python threads.
- **Multiprocessing**: supports use of the `multiprocessing` library -- _Scalene only_
- **Python vs. C time**: breaks out time spent in Python vs. native code (e.g., libraries) -- _Scalene only_
- **System time**: breaks out system time (e.g., sleeping or performing I/O) -- _Scalene only_
- **Profiles memory**: reports memory consumption per line / function
- **GPU**: reports time spent on an NVIDIA GPU (if present) -- _Scalene only_
- **Memory trends**: reports memory use over time per line / function -- _Scalene only_
- **Copy volume**: reports megabytes being copied per second -- _Scalene only_
- **Detects leaks**: automatically pinpoints lines responsible for likely memory leaks -- _Scalene only_

## Output

If you include the `--cli` option, Scalene prints annotated source code for the program being profiled
(as text, JSON (`--json`), or HTML (`--html`)) and any modules it
uses in the same directory or subdirectories (you can optionally have
it `--profile-all` and only include files with at least a
`--cpu-percent-threshold` of time).  Here is a snippet from
`pystone.py`.

![Example profile](https://raw.githubusercontent.com/plasma-umass/scalene/master/docs/images/sample-profile-pystone.png)

* **Memory usage at the top**: Visualized by "sparklines", memory consumption over the runtime of the profiled code.
* **"Time Python"**: How much time was spent in Python code.
* **"native"**: How much time was spent in non-Python code (e.g., libraries written in C/C++).
* **"system"**: How much time was spent in the system (e.g., I/O).
* **"GPU"**: (not shown here) How much time spent on the GPU, if your system has an NVIDIA GPU installed.
* **"Memory Python"**: How much of the memory allocation happened on the Python side of the code, as opposed to in non-Python code (e.g., libraries written in C/C++).
* **"net"**: Positive net memory numbers indicate total memory allocation in megabytes; negative net memory numbers indicate memory reclamation.
* **"timeline / %"**: Visualized by "sparklines", memory consumption generated by this line over the program runtime, and the percentages of total memory activity this line represents.
* **"Copy (MB/s)"**: The amount of megabytes being copied per second (see "About Scalene").

##  Scalene

The following command runs Scalene on a provided example program.

```console
scalene test/testme.py
```

<details>
 <summary>
  Click to see all Scalene's options (available by running with <code>--help</code>)
 </summary>

```console
    % scalene --help
     usage: scalene [-h] [--outfile OUTFILE] [--html] [--reduced-profile]
                    [--profile-interval PROFILE_INTERVAL] [--cpu-only]
                    [--profile-all] [--profile-only PROFILE_ONLY]
                    [--use-virtual-time]
                    [--cpu-percent-threshold CPU_PERCENT_THRESHOLD]
                    [--cpu-sampling-rate CPU_SAMPLING_RATE]
                    [--malloc-threshold MALLOC_THRESHOLD]
     
     Scalene: a high-precision CPU and memory profiler.
     https://github.com/plasma-umass/scalene
     
     command-line:
        % scalene [options] yourprogram.py
     or
        % python3 -m scalene [options] yourprogram.py
     
     in Jupyter, line mode:
        %scrun [options] statement
     
     in Jupyter, cell mode:
        %%scalene [options]
        code...
        code...
     
     optional arguments:
       -h, --help            show this help message and exit
       --outfile OUTFILE     file to hold profiler output (default: stdout)
       --html                output as HTML (default: text)
       --reduced-profile     generate a reduced profile, with non-zero lines only (default: False)
       --profile-interval PROFILE_INTERVAL
                             output profiles every so many seconds (default: inf)
       --cpu-only            only profile CPU time (default: profile CPU, memory, and copying)
       --profile-all         profile all executed code, not just the target program (default: only the target program)
       --profile-only PROFILE_ONLY
                             profile only code in filenames that contain the given strings, separated by commas (default: no restrictions)
       --use-virtual-time    measure only CPU time, not time spent in I/O or blocking (default: False)
       --cpu-percent-threshold CPU_PERCENT_THRESHOLD
                             only report profiles with at least this percent of CPU time (default: 1%)
       --cpu-sampling-rate CPU_SAMPLING_RATE
                             CPU sampling rate (default: every 0.01s)
       --malloc-threshold MALLOC_THRESHOLD
                             only report profiles with at least this many allocations (default: 100)
     
     When running Scalene in the background, you can suspend/resume profiling
     for the process ID that Scalene reports. For example:
     
        % python3 -m scalene [options] yourprogram.py &
      Scalene now profiling process 12345
        to suspend profiling: python3 -m scalene.profile --off --pid 12345
        to resume profiling:  python3 -m scalene.profile --on  --pid 12345
```
</details>

### Scalene with Jupyter

<details>
<summary>
Instructions for installing and using Scalene with Jupyter notebooks
</summary>

[This notebook](https://nbviewer.jupyter.org/github/plasma-umass/scalene/blob/master/docs/scalene-demo.ipynb) illustrates the use of Scalene in Jupyter.

Installation:

```console
!pip install scalene
%load_ext scalene
```

Line mode:

```console
%scrun [options] statement
```

Cell mode:

```console
%%scalene [options]
code...
code...
```
</details>

## Installation

<details open>
<summary>Using <code>pip</code> (Mac OS X, Linux, Windows, and WSL2)</summary>

Scalene is distributed as a `pip` package and works on Mac OS X, Linux (including Ubuntu in [Windows WSL2](https://docs.microsoft.com/en-us/windows/wsl/wsl2-index)) and (with limitations) Windows platforms.

> **Note**
>
> The Windows version currently only supports CPU and GPU profiling, but not memory or copy profiling.
> 

You can install it as follows:
```console
  % pip install -U scalene
```

or
```console
  % python3 -m pip install -U scalene
```

You may need to install some packages first.

See https://stackoverflow.com/a/19344978/4954434 for full instructions for all Linux flavors.

For Ubuntu/Debian:

```console
  % sudo apt install git python3-all-dev
```
</details>

<details>
<summary>Using <code>conda</code> (Mac OS X, Linux, Windows, and WSL2)</summary>

```console
  % conda install -c conda-forge scalene
```

Scalene is distributed as a `conda` package and works on Mac OS X, Linux (including Ubuntu in [Windows WSL2](https://docs.microsoft.com/en-us/windows/wsl/wsl2-index)) and (with limitations) Windows platforms.

> **Note**
>
> The Windows version currently only supports CPU and GPU profiling, but not memory or copy profiling.
> 
</details>

<details>
<summary>On ArchLinux</summary>

You can install Scalene on Arch Linux via the [AUR
package](https://aur.archlinux.org/packages/python-scalene-git/). Use your favorite AUR helper, or
manually download the `PKGBUILD` and run `makepkg -cirs` to build. Note that this will place
`libscalene.so` in `/usr/lib`; modify the below usage instructions accordingly.
</details>

# Frequently Asked Questions

<details>
<summary>
Can I use Scalene with PyTest?
</summary>

**A:** Yes! You can run it as follows (for example):

`python3 -m scalene --- -m pytest your_test.py` 

</details>

<details>
<summary>
Is there any way to get shorter profiles or do more targeted profiling?
</summary>

**A:** Yes! There are several options:

1. Use `--reduced-profile` to include only lines and files with memory/CPU/GPU activity.
2. Use `--profile-only` to include only filenames containing specific strings (as in, `--profile-only foo,bar,baz`).
3. Decorate functions of interest with `@profile` to have Scalene report _only_ those functions.
4. Turn profiling on and off programmatically by importing Scalene profiler (`from scalene import scalene_profiler`) and then turning profiling on and off via `scalene_profiler.start()` and `scalene_profiler.stop()`. By default, Scalene runs with profiling on, so to delay profiling until desired, use the `--off` command-line option (`python3 -m scalene --off yourprogram.py`).
</details>

<details>
<summary>
How do I run Scalene in PyCharm?
</summary>

**A:**  In PyCharm, you can run Scalene at the command line by opening the terminal at the bottom of the IDE and running a Scalene command (e.g., `python -m scalene <your program>`). Use the options `--cli`, `--html`, and `--outfile <your output.html>` to generate an HTML file that you can then view in the IDE.
</details>

<details>
<summary>
How do I use Scalene with Django?
</summary>

**A:** Pass in the `--noreload` option (see https://github.com/plasma-umass/scalene/issues/178).
</details>


<details>
<summary>
Does Scalene work with gevent/Greenlets?
</summary>

**A:** Yes! Put the following code in the beginning of your program, or modify the call to `monkey.patch_all` as below:

```python
from gevent import monkey
monkey.patch_all(thread=False)
```
</details>



<details>
<summary>
How do I use Scalene with PyTorch on the Mac?
</summary>

**A:** Scalene works with PyTorch version 1.5.1 on Mac OS X. There's a bug in newer versions of PyTorch (https://github.com/pytorch/pytorch/issues/57185) that interferes with Scalene (discussion here: https://github.com/plasma-umass/scalene/issues/110), but only on Macs.
</details>

# Technical Information

For details about how Scalene works, please see the following paper, which won the Jay Lepreau Best Paper Award at [OSDI 2023](https://www.usenix.org/conference/osdi23/presentation/berger): [Triangulating Python Performance Issues with Scalene](https://arxiv.org/pdf/2212.07597). (Note that this paper does not include information about the AI-driven proposed optimizations.)

<details>
<summary>
To cite Scalene in an academic paper, please use the following:
</summary>

```latex
@inproceedings{288540,
author = {Emery D. Berger and Sam Stern and Juan Altmayer Pizzorno},
title = {Triangulating Python Performance Issues with {S}calene},
booktitle = {{17th USENIX Symposium on Operating Systems Design and Implementation (OSDI 23)}},
year = {2023},
isbn = {978-1-939133-34-2},
address = {Boston, MA},
pages = {51--64},
url = {https://www.usenix.org/conference/osdi23/presentation/berger},
publisher = {USENIX Association},
month = jul
}
```
</details>


# Success Stories

If you use Scalene to successfully debug a performance problem, please [add a comment to this issue](https://github.com/plasma-umass/scalene/issues/58)!


# Acknowledgements

Logo created by [Sophia Berger](https://www.linkedin.com/in/sophia-berger/).

This material is based upon work supported by the National Science
Foundation under Grant No. 1955610. Any opinions, findings, and
conclusions or recommendations expressed in this material are those of
the author(s) and do not necessarily reflect the views of the National
Science Foundation.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "scalene",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "!=3.11.0,>=3.8",
    "maintainer_email": null,
    "keywords": "performance, profiler, optimization, CPU, GPU, memory, LLM",
    "author": null,
    "author_email": "Emery Berger <emery@cs.umass.edu>, Sam Stern <jstern@umass.edu>, Juan Altmayer Pizzorno <juan@altmayer.com>",
    "download_url": "https://files.pythonhosted.org/packages/52/aa/a739dbe1c9006ca30ce16a5e0ba42b6495ffdff4044e7591ef9cd531431b/scalene-1.5.48.tar.gz",
    "platform": null,
    "description": "![scalene](https://github.com/plasma-umass/scalene/raw/master/docs/scalene-icon-white.png)\r\n\r\n# Scalene: a Python CPU+GPU+memory profiler with AI-powered optimization proposals\r\n\r\nby [Emery Berger](https://emeryberger.com), [Sam Stern](https://samstern.me/), and [Juan Altmayer Pizzorno](https://github.com/jaltmayerpizzorno).\r\n\r\n[![Scalene community Slack](https://github.com/plasma-umass/scalene/raw/master/docs/images/slack-logo.png)](https://join.slack.com/t/scaleneprofil-jge3234/shared_invite/zt-110vzrdck-xJh5d4gHnp5vKXIjYD3Uwg)[Scalene community Slack](https://join.slack.com/t/scaleneprofil-jge3234/shared_invite/zt-110vzrdck-xJh5d4gHnp5vKXIjYD3Uwg)\r\n\r\n[![PyPI Latest Release](https://img.shields.io/pypi/v/scalene.svg)](https://pypi.org/project/scalene/)[![Anaconda-Server Badge](https://img.shields.io/conda/v/conda-forge/scalene)](https://anaconda.org/conda-forge/scalene) [![Downloads](https://static.pepy.tech/badge/scalene)](https://pepy.tech/project/scalene)[![Anaconda downloads](https://img.shields.io/conda/d/conda-forge/scalene?logo=conda)](https://anaconda.org/conda-forge/scalene) [![Downloads](https://static.pepy.tech/badge/scalene/month)](https://pepy.tech/project/scalene) ![Python versions](https://img.shields.io/pypi/pyversions/scalene.svg?style=flat-square)[![Visual Studio Code Extension version](https://img.shields.io/visual-studio-marketplace/v/emeryberger.scalene?logo=visualstudiocode)](https://marketplace.visualstudio.com/items?itemName=EmeryBerger.scalene) ![License](https://img.shields.io/github/license/plasma-umass/scalene)\r\n\r\n![Ozsvald tweet](https://github.com/plasma-umass/scalene/raw/master/docs/Ozsvald-tweet.png)\r\n\r\n(tweet from Ian Ozsvald, author of [_High Performance Python_](https://smile.amazon.com/High-Performance-Python-Performant-Programming/dp/1492055026/ref=sr_1_1?crid=texbooks))\r\n\r\n![Semantic Scholar success story](https://github.com/plasma-umass/scalene/raw/master/docs/semantic-scholar-success.png)\r\n\r\n***Scalene web-based user interface:*** [http://plasma-umass.org/scalene-gui/](http://plasma-umass.org/scalene-gui/)\r\n \r\n## About Scalene\r\n\r\nScalene is a high-performance CPU, GPU *and* memory profiler for\r\nPython that does a number of things that other Python profilers do not\r\nand cannot do.  It runs orders of magnitude faster than many other\r\nprofilers while delivering far more detailed information. It is also\r\nthe first profiler ever to incorporate AI-powered proposed\r\noptimizations.\r\n\r\n### AI-powered optimization suggestions\r\n\r\n> **Note**\r\n>\r\n> To enable AI-powered optimization suggestions, you need to enter an [OpenAI key](https://openai.com/api/) in the box under \"Advanced options\". _Your account will need to have a positive balance for this to work_ (check your balance at https://platform.openai.com/account/usage).\r\n>\r\n> <img width=\"487\" alt=\"Scalene advanced options\" src=\"https://user-images.githubusercontent.com/1612723/211639253-ec926b38-3efe-4a20-8514-e10dde94ec01.png\">\r\n\r\nOnce you've entered your OpenAI key (see above), click on the lightning bolt (\u26a1) beside any line or the explosion (\ud83d\udca5) for an entire region of code to generate a proposed optimization. Click on a proposed optimization to copy it to the clipboard.\r\n\r\n<img width=\"571\" alt=\"example proposed optimization\" src=\"https://user-images.githubusercontent.com/1612723/211639968-37cf793f-3290-43d1-9282-79e579558388.png\">\r\n\r\nYou can click as many times as you like on the lightning bolt or explosion, and it will generate different suggested optimizations. Your mileage may vary, but in some cases, the suggestions are quite impressive (e.g., order-of-magnitude improvements). \r\n  \r\n### Quick Start\r\n\r\n#### Installing Scalene:\r\n\r\n```console\r\npython3 -m pip install -U scalene\r\n```\r\n\r\nor\r\n\r\n```console\r\nconda install -c conda-forge scalene\r\n```\r\n\r\n#### Using Scalene:\r\n\r\nAfter installing Scalene, you can use Scalene at the command line, or as a Visual Studio Code extension.\r\n\r\n<details>\r\n  <summary>\r\n    Using the Scalene VS Code Extension:\r\n  </summary>\r\n  \r\n\r\nFirst, install <a href=\"https://marketplace.visualstudio.com/items?itemName=EmeryBerger.scalene\">the Scalene extension from the VS Code Marketplace</a> or by searching for it within VS Code by typing Command-Shift-X (Mac) or Ctrl-Shift-X (Windows). Once that's installed, click Command-Shift-P or Ctrl-Shift-P to open the <a href=\"https://code.visualstudio.com/docs/getstarted/userinterface\">Command Palette</a>. Then select <b>\"Scalene: AI-powered profiling...\"</b> (you can start typing Scalene and it will pop up if it's installed). Run that and, assuming your code runs for at least a second, a Scalene profile will appear in a webview.\r\n  \r\n<img width=\"734\" alt=\"Screenshot 2023-09-20 at 7 09 06 PM\" src=\"https://github.com/plasma-umass/scalene/assets/1612723/7e78e3d2-e649-4f02-86fd-0da2a259a1a4\">\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>\r\nCommonly used command-line options:\r\n</summary>\r\n\r\n```console\r\nscalene your_prog.py                             # full profile (outputs to web interface)\r\npython3 -m scalene your_prog.py                  # equivalent alternative\r\n\r\nscalene --cli your_prog.py                       # use the command-line only (no web interface)\r\n\r\nscalene --cpu your_prog.py                       # only profile CPU\r\nscalene --cpu --gpu your_prog.py                 # only profile CPU and GPU\r\nscalene --cpu --gpu --memory your_prog.py        # profile everything (same as no options)\r\n\r\nscalene --reduced-profile your_prog.py           # only profile lines with significant usage\r\nscalene --profile-interval 5.0 your_prog.py      # output a new profile every five seconds\r\n\r\nscalene (Scalene options) --- your_prog.py (...) # use --- to tell Scalene to ignore options after that point\r\nscalene --help                                   # lists all options\r\n```\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>\r\nUsing Scalene programmatically in your code:\r\n</summary>\r\n\r\nInvoke using `scalene` as above and then:\r\n\r\n```Python\r\nfrom scalene import scalene_profiler\r\n\r\n# Turn profiling on\r\nscalene_profiler.start()\r\n\r\n# your code\r\n\r\n# Turn profiling off\r\nscalene_profiler.stop()\r\n```\r\n\r\n```Python\r\nfrom scalene.scalene_profiler import enable_profiling\r\n\r\nwith enable_profiling():\r\n    # do something\r\n```\r\n\r\n</details>\r\n\r\n<details>\r\n<summary>\r\nUsing Scalene to profile only specific functions via <code>@profile</code>:\r\n</summary>\r\n\r\nJust preface any functions you want to profile with the `@profile` decorator and run it with Scalene:\r\n\r\n```Python\r\n# do not import profile!\r\n\r\n@profile\r\ndef slow_function():\r\n    import time\r\n    time.sleep(3)\r\n```\r\n\r\n</details>\r\n\r\n#### Web-based GUI\r\n\r\nScalene has both a CLI and a web-based GUI [(demo here)](http://plasma-umass.org/scalene-gui/).\r\n\r\nBy default, once Scalene has profiled your program, it will open a\r\ntab in a web browser with an interactive user interface (all processing is done\r\nlocally). Hover over bars to see breakdowns of CPU and memory\r\nconsumption, and click on underlined column headers to sort the\r\ncolumns. The generated file `profile.html` is self-contained and can be saved for later use.\r\n\r\n[![Scalene web GUI](https://raw.githubusercontent.com/plasma-umass/scalene/master/docs/scalene-gui-example.png)](https://raw.githubusercontent.com/plasma-umass/scalene/master/docs/scalene-gui-example-full.png)\r\n\r\n\r\n## Scalene Overview\r\n\r\n### Scalene talk (PyCon US 2021)\r\n\r\n[This talk](https://youtu.be/5iEf-_7mM1k) presented at PyCon 2021 walks through Scalene's advantages and how to use it to debug the performance of an application (and provides some technical details on its internals). We highly recommend watching this video!\r\n\r\n[![Scalene presentation at PyCon 2021](https://raw.githubusercontent.com/plasma-umass/scalene/master/docs/images/scalene-video-img.png)](https://youtu.be/5iEf-_7mM1k \"Scalene presentation at PyCon 2021\")\r\n\r\n### Fast and Accurate\r\n\r\n- Scalene is **_fast_**. It uses sampling instead of instrumentation or relying on Python's tracing facilities. Its overhead is typically no more than 10-20% (and often less).\r\n\r\n- Scalene is **accurate**. We tested CPU profiler accuracy and found that Scalene is among the most accurate profilers, correctly measuring time taken.\r\n\r\n![Profiler accuracy](https://github.com/plasma-umass/scalene/raw/master/docs/cpu-accuracy-comparison.png)\r\n\r\n- Scalene performs profiling **_at the line level_** _and_ **_per function_**, pointing to the functions and the specific lines of code responsible for the execution time in your program.\r\n\r\n### CPU profiling\r\n\r\n- Scalene **separates out time spent in Python from time in native code** (including libraries). Most Python programmers aren't going to optimize the performance of native code (which is usually either in the Python implementation or external libraries), so this helps developers focus their optimization efforts on the code they can actually improve.\r\n- Scalene **highlights hotspots** (code accounting for significant percentages of CPU time or memory allocation) in red, making them even easier to spot.\r\n- Scalene also separates out **system time**, making it easy to find I/O bottlenecks.\r\n\r\n### GPU profiling\r\n\r\n- Scalene reports **GPU time** (currently limited to NVIDIA-based systems).\r\n\r\n### Memory profiling\r\n\r\n- Scalene **profiles memory usage**. In addition to tracking CPU usage, Scalene also points to the specific lines of code responsible for memory growth. It accomplishes this via an included specialized memory allocator.\r\n- Scalene separates out the percentage of **memory consumed by Python code vs. native code**.\r\n- Scalene produces **_per-line_ memory profiles**.\r\n- Scalene **identifies lines with likely memory leaks**.\r\n- Scalene **profiles _copying volume_**, making it easy to spot inadvertent copying, especially due to crossing Python/library boundaries (e.g., accidentally converting `numpy` arrays into Python arrays, and vice versa).\r\n\r\n### Other features\r\n\r\n- Scalene can produce **reduced profiles** (via `--reduced-profile`) that only report lines that consume more than 1% of CPU or perform at least 100 allocations.\r\n- Scalene supports `@profile` decorators to profile only specific functions.\r\n- When Scalene is profiling a program launched in the background (via `&`), you can **suspend and resume profiling**.\r\n\r\n# Comparison to Other Profilers\r\n\r\n## Performance and Features\r\n\r\nBelow is a table comparing the **performance and features** of various profilers to Scalene.\r\n\r\n![Performance and feature comparison](https://raw.githubusercontent.com/plasma-umass/scalene/master/docs/images/profiler-comparison.png)\r\n\r\n- **Slowdown**: the slowdown when running a benchmark from the Pyperformance suite. Green means less than 2x overhead. Scalene's overhead is just a 35% slowdown.\r\n\r\nScalene has all of the following features, many of which only Scalene supports:\r\n\r\n- **Lines or functions**: does the profiler report information only for entire functions, or for every line -- Scalene does both.\r\n- **Unmodified Code**: works on unmodified code.\r\n- **Threads**: supports Python threads.\r\n- **Multiprocessing**: supports use of the `multiprocessing` library -- _Scalene only_\r\n- **Python vs. C time**: breaks out time spent in Python vs. native code (e.g., libraries) -- _Scalene only_\r\n- **System time**: breaks out system time (e.g., sleeping or performing I/O) -- _Scalene only_\r\n- **Profiles memory**: reports memory consumption per line / function\r\n- **GPU**: reports time spent on an NVIDIA GPU (if present) -- _Scalene only_\r\n- **Memory trends**: reports memory use over time per line / function -- _Scalene only_\r\n- **Copy volume**: reports megabytes being copied per second -- _Scalene only_\r\n- **Detects leaks**: automatically pinpoints lines responsible for likely memory leaks -- _Scalene only_\r\n\r\n## Output\r\n\r\nIf you include the `--cli` option, Scalene prints annotated source code for the program being profiled\r\n(as text, JSON (`--json`), or HTML (`--html`)) and any modules it\r\nuses in the same directory or subdirectories (you can optionally have\r\nit `--profile-all` and only include files with at least a\r\n`--cpu-percent-threshold` of time).  Here is a snippet from\r\n`pystone.py`.\r\n\r\n![Example profile](https://raw.githubusercontent.com/plasma-umass/scalene/master/docs/images/sample-profile-pystone.png)\r\n\r\n* **Memory usage at the top**: Visualized by \"sparklines\", memory consumption over the runtime of the profiled code.\r\n* **\"Time Python\"**: How much time was spent in Python code.\r\n* **\"native\"**: How much time was spent in non-Python code (e.g., libraries written in C/C++).\r\n* **\"system\"**: How much time was spent in the system (e.g., I/O).\r\n* **\"GPU\"**: (not shown here) How much time spent on the GPU, if your system has an NVIDIA GPU installed.\r\n* **\"Memory Python\"**: How much of the memory allocation happened on the Python side of the code, as opposed to in non-Python code (e.g., libraries written in C/C++).\r\n* **\"net\"**: Positive net memory numbers indicate total memory allocation in megabytes; negative net memory numbers indicate memory reclamation.\r\n* **\"timeline / %\"**: Visualized by \"sparklines\", memory consumption generated by this line over the program runtime, and the percentages of total memory activity this line represents.\r\n* **\"Copy (MB/s)\"**: The amount of megabytes being copied per second (see \"About Scalene\").\r\n\r\n##  Scalene\r\n\r\nThe following command runs Scalene on a provided example program.\r\n\r\n```console\r\nscalene test/testme.py\r\n```\r\n\r\n<details>\r\n <summary>\r\n  Click to see all Scalene's options (available by running with <code>--help</code>)\r\n </summary>\r\n\r\n```console\r\n    % scalene --help\r\n     usage: scalene [-h] [--outfile OUTFILE] [--html] [--reduced-profile]\r\n                    [--profile-interval PROFILE_INTERVAL] [--cpu-only]\r\n                    [--profile-all] [--profile-only PROFILE_ONLY]\r\n                    [--use-virtual-time]\r\n                    [--cpu-percent-threshold CPU_PERCENT_THRESHOLD]\r\n                    [--cpu-sampling-rate CPU_SAMPLING_RATE]\r\n                    [--malloc-threshold MALLOC_THRESHOLD]\r\n     \r\n     Scalene: a high-precision CPU and memory profiler.\r\n     https://github.com/plasma-umass/scalene\r\n     \r\n     command-line:\r\n        % scalene [options] yourprogram.py\r\n     or\r\n        % python3 -m scalene [options] yourprogram.py\r\n     \r\n     in Jupyter, line mode:\r\n        %scrun [options] statement\r\n     \r\n     in Jupyter, cell mode:\r\n        %%scalene [options]\r\n        code...\r\n        code...\r\n     \r\n     optional arguments:\r\n       -h, --help            show this help message and exit\r\n       --outfile OUTFILE     file to hold profiler output (default: stdout)\r\n       --html                output as HTML (default: text)\r\n       --reduced-profile     generate a reduced profile, with non-zero lines only (default: False)\r\n       --profile-interval PROFILE_INTERVAL\r\n                             output profiles every so many seconds (default: inf)\r\n       --cpu-only            only profile CPU time (default: profile CPU, memory, and copying)\r\n       --profile-all         profile all executed code, not just the target program (default: only the target program)\r\n       --profile-only PROFILE_ONLY\r\n                             profile only code in filenames that contain the given strings, separated by commas (default: no restrictions)\r\n       --use-virtual-time    measure only CPU time, not time spent in I/O or blocking (default: False)\r\n       --cpu-percent-threshold CPU_PERCENT_THRESHOLD\r\n                             only report profiles with at least this percent of CPU time (default: 1%)\r\n       --cpu-sampling-rate CPU_SAMPLING_RATE\r\n                             CPU sampling rate (default: every 0.01s)\r\n       --malloc-threshold MALLOC_THRESHOLD\r\n                             only report profiles with at least this many allocations (default: 100)\r\n     \r\n     When running Scalene in the background, you can suspend/resume profiling\r\n     for the process ID that Scalene reports. For example:\r\n     \r\n        % python3 -m scalene [options] yourprogram.py &\r\n      Scalene now profiling process 12345\r\n        to suspend profiling: python3 -m scalene.profile --off --pid 12345\r\n        to resume profiling:  python3 -m scalene.profile --on  --pid 12345\r\n```\r\n</details>\r\n\r\n### Scalene with Jupyter\r\n\r\n<details>\r\n<summary>\r\nInstructions for installing and using Scalene with Jupyter notebooks\r\n</summary>\r\n\r\n[This notebook](https://nbviewer.jupyter.org/github/plasma-umass/scalene/blob/master/docs/scalene-demo.ipynb) illustrates the use of Scalene in Jupyter.\r\n\r\nInstallation:\r\n\r\n```console\r\n!pip install scalene\r\n%load_ext scalene\r\n```\r\n\r\nLine mode:\r\n\r\n```console\r\n%scrun [options] statement\r\n```\r\n\r\nCell mode:\r\n\r\n```console\r\n%%scalene [options]\r\ncode...\r\ncode...\r\n```\r\n</details>\r\n\r\n## Installation\r\n\r\n<details open>\r\n<summary>Using <code>pip</code> (Mac OS X, Linux, Windows, and WSL2)</summary>\r\n\r\nScalene is distributed as a `pip` package and works on Mac OS X, Linux (including Ubuntu in [Windows WSL2](https://docs.microsoft.com/en-us/windows/wsl/wsl2-index)) and (with limitations) Windows platforms.\r\n\r\n> **Note**\r\n>\r\n> The Windows version currently only supports CPU and GPU profiling, but not memory or copy profiling.\r\n> \r\n\r\nYou can install it as follows:\r\n```console\r\n  % pip install -U scalene\r\n```\r\n\r\nor\r\n```console\r\n  % python3 -m pip install -U scalene\r\n```\r\n\r\nYou may need to install some packages first.\r\n\r\nSee https://stackoverflow.com/a/19344978/4954434 for full instructions for all Linux flavors.\r\n\r\nFor Ubuntu/Debian:\r\n\r\n```console\r\n  % sudo apt install git python3-all-dev\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary>Using <code>conda</code> (Mac OS X, Linux, Windows, and WSL2)</summary>\r\n\r\n```console\r\n  % conda install -c conda-forge scalene\r\n```\r\n\r\nScalene is distributed as a `conda` package and works on Mac OS X, Linux (including Ubuntu in [Windows WSL2](https://docs.microsoft.com/en-us/windows/wsl/wsl2-index)) and (with limitations) Windows platforms.\r\n\r\n> **Note**\r\n>\r\n> The Windows version currently only supports CPU and GPU profiling, but not memory or copy profiling.\r\n> \r\n</details>\r\n\r\n<details>\r\n<summary>On ArchLinux</summary>\r\n\r\nYou can install Scalene on Arch Linux via the [AUR\r\npackage](https://aur.archlinux.org/packages/python-scalene-git/). Use your favorite AUR helper, or\r\nmanually download the `PKGBUILD` and run `makepkg -cirs` to build. Note that this will place\r\n`libscalene.so` in `/usr/lib`; modify the below usage instructions accordingly.\r\n</details>\r\n\r\n# Frequently Asked Questions\r\n\r\n<details>\r\n<summary>\r\nCan I use Scalene with PyTest?\r\n</summary>\r\n\r\n**A:** Yes! You can run it as follows (for example):\r\n\r\n`python3 -m scalene --- -m pytest your_test.py` \r\n\r\n</details>\r\n\r\n<details>\r\n<summary>\r\nIs there any way to get shorter profiles or do more targeted profiling?\r\n</summary>\r\n\r\n**A:** Yes! There are several options:\r\n\r\n1. Use `--reduced-profile` to include only lines and files with memory/CPU/GPU activity.\r\n2. Use `--profile-only` to include only filenames containing specific strings (as in, `--profile-only foo,bar,baz`).\r\n3. Decorate functions of interest with `@profile` to have Scalene report _only_ those functions.\r\n4. Turn profiling on and off programmatically by importing Scalene profiler (`from scalene import scalene_profiler`) and then turning profiling on and off via `scalene_profiler.start()` and `scalene_profiler.stop()`. By default, Scalene runs with profiling on, so to delay profiling until desired, use the `--off` command-line option (`python3 -m scalene --off yourprogram.py`).\r\n</details>\r\n\r\n<details>\r\n<summary>\r\nHow do I run Scalene in PyCharm?\r\n</summary>\r\n\r\n**A:**  In PyCharm, you can run Scalene at the command line by opening the terminal at the bottom of the IDE and running a Scalene command (e.g., `python -m scalene <your program>`). Use the options `--cli`, `--html`, and `--outfile <your output.html>` to generate an HTML file that you can then view in the IDE.\r\n</details>\r\n\r\n<details>\r\n<summary>\r\nHow do I use Scalene with Django?\r\n</summary>\r\n\r\n**A:** Pass in the `--noreload` option (see https://github.com/plasma-umass/scalene/issues/178).\r\n</details>\r\n\r\n\r\n<details>\r\n<summary>\r\nDoes Scalene work with gevent/Greenlets?\r\n</summary>\r\n\r\n**A:** Yes! Put the following code in the beginning of your program, or modify the call to `monkey.patch_all` as below:\r\n\r\n```python\r\nfrom gevent import monkey\r\nmonkey.patch_all(thread=False)\r\n```\r\n</details>\r\n\r\n\r\n\r\n<details>\r\n<summary>\r\nHow do I use Scalene with PyTorch on the Mac?\r\n</summary>\r\n\r\n**A:** Scalene works with PyTorch version 1.5.1 on Mac OS X. There's a bug in newer versions of PyTorch (https://github.com/pytorch/pytorch/issues/57185) that interferes with Scalene (discussion here: https://github.com/plasma-umass/scalene/issues/110), but only on Macs.\r\n</details>\r\n\r\n# Technical Information\r\n\r\nFor details about how Scalene works, please see the following paper, which won the Jay Lepreau Best Paper Award at [OSDI 2023](https://www.usenix.org/conference/osdi23/presentation/berger): [Triangulating Python Performance Issues with Scalene](https://arxiv.org/pdf/2212.07597). (Note that this paper does not include information about the AI-driven proposed optimizations.)\r\n\r\n<details>\r\n<summary>\r\nTo cite Scalene in an academic paper, please use the following:\r\n</summary>\r\n\r\n```latex\r\n@inproceedings{288540,\r\nauthor = {Emery D. Berger and Sam Stern and Juan Altmayer Pizzorno},\r\ntitle = {Triangulating Python Performance Issues with {S}calene},\r\nbooktitle = {{17th USENIX Symposium on Operating Systems Design and Implementation (OSDI 23)}},\r\nyear = {2023},\r\nisbn = {978-1-939133-34-2},\r\naddress = {Boston, MA},\r\npages = {51--64},\r\nurl = {https://www.usenix.org/conference/osdi23/presentation/berger},\r\npublisher = {USENIX Association},\r\nmonth = jul\r\n}\r\n```\r\n</details>\r\n\r\n\r\n# Success Stories\r\n\r\nIf you use Scalene to successfully debug a performance problem, please [add a comment to this issue](https://github.com/plasma-umass/scalene/issues/58)!\r\n\r\n\r\n# Acknowledgements\r\n\r\nLogo created by [Sophia Berger](https://www.linkedin.com/in/sophia-berger/).\r\n\r\nThis material is based upon work supported by the National Science\r\nFoundation under Grant No. 1955610. Any opinions, findings, and\r\nconclusions or recommendations expressed in this material are those of\r\nthe author(s) and do not necessarily reflect the views of the National\r\nScience Foundation.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Scalene: A high-resolution, low-overhead CPU, GPU, and memory profiler for Python with AI-powered optimization suggestions",
    "version": "1.5.48",
    "project_urls": {
        "Homepage": "https://github.com/plasma-umass/scalene",
        "Repository": "https://github.com/plasma-umass/scalene"
    },
    "split_keywords": [
        "performance",
        " profiler",
        " optimization",
        " cpu",
        " gpu",
        " memory",
        " llm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "092bb610edaf800b7da05fa8eb328460f8e36480c9e956b9db75d598f081dc76",
                "md5": "a2ee6f91cab251d4ba4e3ef5cfbacc23",
                "sha256": "229312990a59df06f7a1854b09e17f23578d24b0ed013d4745f61e6d3cfbf098"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp310-cp310-macosx_13_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "a2ee6f91cab251d4ba4e3ef5cfbacc23",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 540641,
            "upload_time": "2024-11-13T19:33:05",
            "upload_time_iso_8601": "2024-11-13T19:33:05.614270Z",
            "url": "https://files.pythonhosted.org/packages/09/2b/b610edaf800b7da05fa8eb328460f8e36480c9e956b9db75d598f081dc76/scalene-1.5.48-cp310-cp310-macosx_13_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9f592b42483b9389591bef4c47aeb73f4ba64a97f19e46bc30b90d76c8ce8377",
                "md5": "c97ca7e00d481c358f39e1dd8d67b90e",
                "sha256": "c487603c6e81a81d3012ae63e018c813ca5f9cb77fd1c7cd093aaa451bb2d7ea"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp310-cp310-macosx_14_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "c97ca7e00d481c358f39e1dd8d67b90e",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 540695,
            "upload_time": "2024-11-13T19:24:39",
            "upload_time_iso_8601": "2024-11-13T19:24:39.818381Z",
            "url": "https://files.pythonhosted.org/packages/9f/59/2b42483b9389591bef4c47aeb73f4ba64a97f19e46bc30b90d76c8ce8377/scalene-1.5.48-cp310-cp310-macosx_14_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "84644203e08dc5b1c5809af16fffef1fe03b796a9e39b3b54c9a3f943cd2f0f9",
                "md5": "dffa1d5429cbd583339845487deaedde",
                "sha256": "8350c0c07ce2048fe2a46e1ef85b36f8aeb7e11338783fe4d5236bb4a581e5c4"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "dffa1d5429cbd583339845487deaedde",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 812161,
            "upload_time": "2024-11-13T19:24:03",
            "upload_time_iso_8601": "2024-11-13T19:24:03.470288Z",
            "url": "https://files.pythonhosted.org/packages/84/64/4203e08dc5b1c5809af16fffef1fe03b796a9e39b3b54c9a3f943cd2f0f9/scalene-1.5.48-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "39986bd422c13a3bb97fae077a3dd5391292bcd10dd647e5d3e70da75cfe3dba",
                "md5": "63925a12bf0c42b370585d3479bb58bc",
                "sha256": "72042eecad4d8f2a4e78bca7a8a41f9127c8da11e1b95d0e309530139a20321d"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "63925a12bf0c42b370585d3479bb58bc",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 430620,
            "upload_time": "2024-11-13T19:24:02",
            "upload_time_iso_8601": "2024-11-13T19:24:02.606694Z",
            "url": "https://files.pythonhosted.org/packages/39/98/6bd422c13a3bb97fae077a3dd5391292bcd10dd647e5d3e70da75cfe3dba/scalene-1.5.48-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f086a93bd3be9ffb018e8f46aa5914086e53eb97a300706f8407a9821534a106",
                "md5": "8378820315041e75caddc568f8efc87d",
                "sha256": "38521c0084ceb59327c2154d6d3ab73af5601aabbe50d12f53fa6897d59632ef"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp311-cp311-macosx_13_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "8378820315041e75caddc568f8efc87d",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 541292,
            "upload_time": "2024-11-13T19:33:03",
            "upload_time_iso_8601": "2024-11-13T19:33:03.146415Z",
            "url": "https://files.pythonhosted.org/packages/f0/86/a93bd3be9ffb018e8f46aa5914086e53eb97a300706f8407a9821534a106/scalene-1.5.48-cp311-cp311-macosx_13_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f8647989ccaaa613aa8bcff4c820f61f06412149646aa4b5baeeb15ef673619",
                "md5": "fb96e89bf4b4165b3f3ae2b4b9fbadff",
                "sha256": "675b1a3d16fa31a8fd971e56a9d8e236905f72c147c36812fbc5f1bd916fa504"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp311-cp311-macosx_14_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "fb96e89bf4b4165b3f3ae2b4b9fbadff",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 540763,
            "upload_time": "2024-11-13T19:33:00",
            "upload_time_iso_8601": "2024-11-13T19:33:00.131104Z",
            "url": "https://files.pythonhosted.org/packages/1f/86/47989ccaaa613aa8bcff4c820f61f06412149646aa4b5baeeb15ef673619/scalene-1.5.48-cp311-cp311-macosx_14_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fe9716cb7f85f70f2631fb232ee86344c02ecebe5f138b72c94ddaeb045ea82d",
                "md5": "136eebc60a731ded6b9aa38072f305cc",
                "sha256": "0db06dd5919eb6873bb448d50431a76878c37f33cffe4d73b43c8f01b9bf5b6a"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "136eebc60a731ded6b9aa38072f305cc",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 812425,
            "upload_time": "2024-11-13T19:24:04",
            "upload_time_iso_8601": "2024-11-13T19:24:04.755352Z",
            "url": "https://files.pythonhosted.org/packages/fe/97/16cb7f85f70f2631fb232ee86344c02ecebe5f138b72c94ddaeb045ea82d/scalene-1.5.48-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "812bf19382ae419300ff29a320ec3d05c733460b091a0d6cbafde48e131763b0",
                "md5": "4f873d8e3db8b1108d27f6ffa990a449",
                "sha256": "d955e22978403df570477bb527ec1086f52323d8da508acf8555335494ab0e1c"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp312-cp312-macosx_13_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "4f873d8e3db8b1108d27f6ffa990a449",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 541209,
            "upload_time": "2024-11-13T19:34:08",
            "upload_time_iso_8601": "2024-11-13T19:34:08.421922Z",
            "url": "https://files.pythonhosted.org/packages/81/2b/f19382ae419300ff29a320ec3d05c733460b091a0d6cbafde48e131763b0/scalene-1.5.48-cp312-cp312-macosx_13_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "61041b27c0f15994be8532d12ec10b1f4643c6c7e287a0d4254a15d499218dfd",
                "md5": "21c9f685fac342d29b135b685e11454a",
                "sha256": "fe201d818abbf6a3ee8dbc939a34fda31ab50d4785d4dc3fa4dbfb19e0d1fd02"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp312-cp312-macosx_14_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "21c9f685fac342d29b135b685e11454a",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 540678,
            "upload_time": "2024-11-13T19:33:53",
            "upload_time_iso_8601": "2024-11-13T19:33:53.400513Z",
            "url": "https://files.pythonhosted.org/packages/61/04/1b27c0f15994be8532d12ec10b1f4643c6c7e287a0d4254a15d499218dfd/scalene-1.5.48-cp312-cp312-macosx_14_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f95e648c2be78014b052d2bd4c87a9898503239894dd62834a535d70115435ce",
                "md5": "e673d15c3cfe1e97679d9cd1d7aacae6",
                "sha256": "b2fc96c0ef1b9604d2e4b77f7c0e99b71561c89c431a479b6a4cb552bdb149b2"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "e673d15c3cfe1e97679d9cd1d7aacae6",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 812695,
            "upload_time": "2024-11-13T19:24:11",
            "upload_time_iso_8601": "2024-11-13T19:24:11.141632Z",
            "url": "https://files.pythonhosted.org/packages/f9/5e/648c2be78014b052d2bd4c87a9898503239894dd62834a535d70115435ce/scalene-1.5.48-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2732d272b7c3f95bc3393ae376621cc15345b19fccb404144cda8e6083cbf3fd",
                "md5": "cd3eb8e90f00ba50195a27df3da84f4d",
                "sha256": "8f6f986c71112475e5f849ed98a66be286cd675657307534933ed68c94056a82"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp312-cp312-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "cd3eb8e90f00ba50195a27df3da84f4d",
            "packagetype": "bdist_wheel",
            "python_version": "cp312",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 430621,
            "upload_time": "2024-11-13T19:24:18",
            "upload_time_iso_8601": "2024-11-13T19:24:18.052534Z",
            "url": "https://files.pythonhosted.org/packages/27/32/d272b7c3f95bc3393ae376621cc15345b19fccb404144cda8e6083cbf3fd/scalene-1.5.48-cp312-cp312-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "61d63983144b4b74e5788b1ad558413d14c2fd0cbe1a139f5e9dd8c8b0b1192a",
                "md5": "8c0db820c9a4f52b1527b9dafdb79a7c",
                "sha256": "883e542f1f7377e3505df842d8cdf77878c6e99b790730a171f35529d68ca81a"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp38-cp38-macosx_13_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "8c0db820c9a4f52b1527b9dafdb79a7c",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 540474,
            "upload_time": "2024-11-13T19:34:20",
            "upload_time_iso_8601": "2024-11-13T19:34:20.082249Z",
            "url": "https://files.pythonhosted.org/packages/61/d6/3983144b4b74e5788b1ad558413d14c2fd0cbe1a139f5e9dd8c8b0b1192a/scalene-1.5.48-cp38-cp38-macosx_13_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bdf7d927a72cb27a67140590ce4e3765660f5fed0a9409fa3ad485a16884a755",
                "md5": "504dc675d32b24fe73e04216d74961b2",
                "sha256": "a30ad9e690a38a4fa3065b790f2665a8ea52e689ac6652f80d0e5efa21927cc1"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp38-cp38-macosx_14_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "504dc675d32b24fe73e04216d74961b2",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 540676,
            "upload_time": "2024-11-13T19:34:49",
            "upload_time_iso_8601": "2024-11-13T19:34:49.532040Z",
            "url": "https://files.pythonhosted.org/packages/bd/f7/d927a72cb27a67140590ce4e3765660f5fed0a9409fa3ad485a16884a755/scalene-1.5.48-cp38-cp38-macosx_14_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f59c11f762729f10714606ad137ae79437bc226f33731f5b996b0853c531a478",
                "md5": "f2c411a78029bfcbac362392711a56fe",
                "sha256": "5d6c19bacdfddf02c677d9d9f6c9dfe949feceae39945bd356f476110c4bf7a9"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "f2c411a78029bfcbac362392711a56fe",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 812502,
            "upload_time": "2024-11-13T19:24:09",
            "upload_time_iso_8601": "2024-11-13T19:24:09.525611Z",
            "url": "https://files.pythonhosted.org/packages/f5/9c/11f762729f10714606ad137ae79437bc226f33731f5b996b0853c531a478/scalene-1.5.48-cp38-cp38-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e07d2e0eafcf82e655879501d12d3994d271d4b97de9454bdcf57fa40c23c185",
                "md5": "e236897d32570d2d911e54fdc872a3c6",
                "sha256": "ddff4ed122dfbbfc605916a5c66fa49c86e0f0ebfc973fe5caae847d6e57563e"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp38-cp38-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "e236897d32570d2d911e54fdc872a3c6",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 430620,
            "upload_time": "2024-11-13T19:24:16",
            "upload_time_iso_8601": "2024-11-13T19:24:16.281462Z",
            "url": "https://files.pythonhosted.org/packages/e0/7d/2e0eafcf82e655879501d12d3994d271d4b97de9454bdcf57fa40c23c185/scalene-1.5.48-cp38-cp38-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f83d5d3fb8c31159b87c8b0ed76f7449c4a3b8a357f3b24762a1d90b42857b5a",
                "md5": "51c46669a9c81d2bc4ee501e9d0e812f",
                "sha256": "27a8b3ac275bccdb0bed928de1fb8e6e1c79053c1c56d6266fc6662d0b9ad0c2"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp39-cp39-macosx_13_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "51c46669a9c81d2bc4ee501e9d0e812f",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 540631,
            "upload_time": "2024-11-13T19:34:03",
            "upload_time_iso_8601": "2024-11-13T19:34:03.106833Z",
            "url": "https://files.pythonhosted.org/packages/f8/3d/5d3fb8c31159b87c8b0ed76f7449c4a3b8a357f3b24762a1d90b42857b5a/scalene-1.5.48-cp39-cp39-macosx_13_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ba3bdfb66c17c35cc5fb035b7673905efcac4937bb09315ed0d49fab86c68e14",
                "md5": "b13a6dfb9ae9d2522b8038be010baa69",
                "sha256": "b98010eb7062e778f84c030b8cfec225f76e9c7b4c2f3f84843858f2a42826a4"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp39-cp39-macosx_14_0_universal2.whl",
            "has_sig": false,
            "md5_digest": "b13a6dfb9ae9d2522b8038be010baa69",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 540683,
            "upload_time": "2024-11-13T19:34:44",
            "upload_time_iso_8601": "2024-11-13T19:34:44.280328Z",
            "url": "https://files.pythonhosted.org/packages/ba/3b/dfb66c17c35cc5fb035b7673905efcac4937bb09315ed0d49fab86c68e14/scalene-1.5.48-cp39-cp39-macosx_14_0_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c0052146b920dc88a8f8e27709d563eda78bb7f282888d4b2b09c6170e12dc7b",
                "md5": "398a1af821da9c904b1505d283985301",
                "sha256": "566b1f6622db13d4a078f4af0b51795ab2cd33d3462ff8d7f90438f37b73202c"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl",
            "has_sig": false,
            "md5_digest": "398a1af821da9c904b1505d283985301",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 811524,
            "upload_time": "2024-11-13T19:24:09",
            "upload_time_iso_8601": "2024-11-13T19:24:09.838904Z",
            "url": "https://files.pythonhosted.org/packages/c0/05/2146b920dc88a8f8e27709d563eda78bb7f282888d4b2b09c6170e12dc7b/scalene-1.5.48-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4360144e7a647913b8f97431f7c627f6f129299d6043815a03fa150dcb1c7223",
                "md5": "a76637f08e10ebbb8b1ca60c5957685d",
                "sha256": "520c44d372234400e4183022048179f646dc1618de6f445ca48c98eab5a87537"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "a76637f08e10ebbb8b1ca60c5957685d",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 430619,
            "upload_time": "2024-11-13T19:24:06",
            "upload_time_iso_8601": "2024-11-13T19:24:06.978366Z",
            "url": "https://files.pythonhosted.org/packages/43/60/144e7a647913b8f97431f7c627f6f129299d6043815a03fa150dcb1c7223/scalene-1.5.48-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52aaa739dbe1c9006ca30ce16a5e0ba42b6495ffdff4044e7591ef9cd531431b",
                "md5": "c31ba7694b67e239d5295816d5ca00f9",
                "sha256": "9d541f94aac03e74533b0d1cdbbe2b995bb184ac2d123cc87031faffeb71978c"
            },
            "downloads": -1,
            "filename": "scalene-1.5.48.tar.gz",
            "has_sig": false,
            "md5_digest": "c31ba7694b67e239d5295816d5ca00f9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "!=3.11.0,>=3.8",
            "size": 8738520,
            "upload_time": "2024-11-13T19:33:02",
            "upload_time_iso_8601": "2024-11-13T19:33:02.645602Z",
            "url": "https://files.pythonhosted.org/packages/52/aa/a739dbe1c9006ca30ce16a5e0ba42b6495ffdff4044e7591ef9cd531431b/scalene-1.5.48.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-13 19:33:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "plasma-umass",
    "github_project": "scalene",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "scalene"
}
        
Elapsed time: 1.14877s