{"data":{"slug":"plasma-umass-scalene","name":"scalene","tagline":"Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals","github_url":"https://github.com/plasma-umass/scalene","owner":"plasma-umass","repo":"scalene","owner_avatar_url":"https://avatars.githubusercontent.com/u/1880823?v=4","primary_language":"Python","stars":13467,"forks":435,"topics":["cpu","cpu-profiling","gpu","gpu-programming","memory-allocation","memory-consumption","performance-analysis","performance-cpu","profiler","profiles-memory","profiling","python","python-profilers","scalene"],"archived":false,"github_pushed_at":"2026-07-05T18:37:56+00:00","maintenance_label":"Very active","url":"https://www.graphcanon.com/tools/plasma-umass-scalene","markdown_url":"https://www.graphcanon.com/tools/plasma-umass-scalene.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/plasma-umass-scalene","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=plasma-umass-scalene","description":"Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals","homepage_url":null,"license":"Apache-2.0","open_issues":151,"watchers":83,"ai_summary":null,"readme_excerpt":"### Quick Start\n\n#### Installing Scalene:\n\n```console\npython3 -m pip install -U scalene\n```\n\nor\n\n```console\nconda install -c conda-forge scalene\n```\n\n#### Using Scalene:\n\nAfter installing Scalene, you can use Scalene at the command line, or as a Visual Studio Code extension.\n\n<details>\n  <summary>\n    Using the Scalene VS Code Extension:\n  </summary>\n  \n\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.\n  \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\">\n\n</details>\n\n<details>\n<summary>\nCommonly used command-line options:\n</summary>\n\nScalene uses a verb-based command structure with two main commands: `run` (to profile) and `view` (to display results).\n\n```console\n\n---\n\n## Installation\n\n<details open>\n<summary>Using <code>pip</code> (Mac OS X, Linux, Windows, and WSL2)</summary>\n\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 Windows platforms.\n\n> **Note for Windows users**\n>\n> Starting with Scalene 2.0, Windows supports full memory profiling. If you\n> encounter issues, ensure you have the [Visual C++ Redistributable](https://aka.ms/vs/17/release/vc_redist.x64.exe)\n> installed. If building from source, you will need Visual C++ Build Tools and CMake.\n>\n\nYou can install it as follows:\n```console\n  % pip install -U scalene\n```\n\nor\n```console\n  % python3 -m pip install -U scalene\n```\n\nYou may need to install some packages first.\n\nSee https://stackoverflow.com/a/19344978/4954434 for full instructions for all Linux flavors.\n\nFor Ubuntu/Debian:\n\n```console\n  % sudo apt install git python3-all-dev\n```\n</details>\n\n<details>\n<summary>Using <code>conda</code> (Mac OS X, Linux, Windows, and WSL2)</summary>\n\n```console\n  % conda install -c conda-forge scalene\n```\n\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 Windows platforms.\n\n> **Note for Windows users**\n>\n> Starting with Scalene 2.0, Windows supports full memory profiling. If you\n> encounter issues, ensure you have the [Visual C++ Redistributable](https://aka.ms/vs/17/release/vc_redist.x64.exe)\n> installed.\n>\n</details>\n\n<details>\n<summary>On ArchLinux</summary>\n\nYou can install Scalene on Arch Linux via the [AUR\npackage](https://aur.archlinux.org/packages/python-scalene-git/). Use your favorite AUR helper, or\nmanually download the `PKGBUILD` and run `makepkg -cirs` to build. Note that this will place\n`libscalene.so` in `/usr/lib`; modify the below usage instructions accordingly.\n</details>","github_created_at":"2019-12-17T20:56:28+00:00","created_at":"2026-07-11T23:32:26.709816+00:00","updated_at":"2026-07-11T23:32:43.601508+00:00","categories":[{"slug":"developer-tools","name":"Developer Tools","url":"https://www.graphcanon.com/categories/developer-tools","markdown_url":"https://www.graphcanon.com/categories/developer-tools.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/developer-tools"}],"tags":[{"slug":"cpu-profiling","name":"cpu-profiling"},{"slug":"gpu","name":"gpu"},{"slug":"gpu-programming","name":"gpu-programming"},{"slug":"memory-allocation","name":"memory-allocation"},{"slug":"performance-analysis","name":"performance-analysis"},{"slug":"cpu","name":"cpu"},{"slug":"memory-consumption","name":"memory-consumption"},{"slug":"performance-cpu","name":"performance-cpu"}],"trust":{"provenance":{"is_fork":false,"github_id":228700143,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-07-11T23:32:31.150Z","maintenance":{"label":"Very active","score":96,"methodology":"github_public_v1","releases_90d":1,"days_since_push":6,"last_release_at":"2026-05-12T18:44:45Z"},"security_summary":{"status":"findings","scanner":"osv@v1","low_count":18,"high_count":0,"last_scan_at":"2026-07-11T23:32:31.910Z","medium_count":0,"scan_profile":"deps","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-07-11T23:32:30.781Z"},"has_cli":{"value":true,"source":"pyproject.toml:[project.scripts]","observed_at":"2026-07-11T23:32:30.781Z"},"languages":{"value":["python"],"source":"github.language+pyproject.toml","observed_at":"2026-07-11T23:32:30.781Z"},"license_spdx":{"value":"Apache-2.0","source":"github.license","observed_at":"2026-07-11T23:32:30.781Z"}}}}