IntermediatePython

ScaleneHigh-performance profiler for Python measuring CPU, GPU, and memory

Scalene is a high-performance profiler for Python programs that measures CPU, GPU, and memory usage at the line and function level with 10 to 20 percent overhead. It separates Python execution time from time spent inside native libraries and flags I/O bottlenecks by measuring system time. Memory profiling covers per-line allocations, automatic leak detection, and copy volume. GPU profiling is available on NVIDIA systems. It handles multiprocessing, threading, and free-threaded Python 3.13t/3.14t. Licensed under Apache-2.0.

13.5K Stars
437 Forks
152 Issues
69 Views
Python
Apache-2.0
Indexed

Project Overview

Scalene is a high-performance profiler for Python programs that measures CPU, GPU, and memory usage at the line and function level with 10 to 20 percent overhead. It separates Python execution time from time spent inside native libraries and flags I/O bottlenecks by measuring system time. Memory profiling covers per-line allocations, automatic leak detection, and copy volume. GPU profiling is available on NVIDIA systems. It handles multiprocessing, threading, and free-threaded Python 3.13t/3.14t. Licensed under Apache-2.0.

Overview

Scalene is a high-performance profiler for Python programs, providing detailed measurements of CPU, GPU, and memory usage. The official claim states an overhead of 10 to 20 percent.

Core Features

  • Multi-dimensional profiling: Measures CPU, GPU, and memory usage at both line and function levels.
  • Precise separation: Distinguishes Python execution time from time spent in native libraries, aiding bottleneck identification.
  • I/O bottleneck detection: Flags I/O issues by measuring system time.
  • Memory analysis: Supports per-line allocation tracking, automatic leak detection, and copy volume evaluation.
  • GPU support: Available on NVIDIA systems for GPU profiling.
  • Concurrency support: Works with multiprocessing, threading, and free-threaded Python 3.13t/3.14t.

Tech Stack and License

The primary language is Python, and the project is licensed under Apache-2.0.

Getting Started

As the README summary does not provide specific installation or usage steps, please refer to the project GitHub page for detailed documentation.

ScalenePython profilerCPU GPU memory profilerAI optimizationopen sourceperformance tuningPython 3.8Jupyter Notebook

Project Rating

0.0 (0 Reviews)

Share

Frequently Asked Questions

What is Scalene: High-performance profiler for Python measuring CPU, GPU, and memory?

Scalene is a high-performance profiler for Python programs that measures CPU, GPU, and memory usage at the line and function level with 10 to 20 percent overhead. It separates Python execution time from time spent inside native libraries and flags I/O bottlenecks by measuring system time. Memory profiling covers per-line allocations, automatic leak detection, and copy volume. GPU profiling is available on NVIDIA systems. It handles multiprocessing, threading, and free-threaded Python 3.13t/3.14t. Licensed under Apache-2.0.

What language is Scalene: High-performance profiler for Python measuring CPU, GPU, and memory written in?

Scalene: High-performance profiler for Python measuring CPU, GPU, and memory is primarily written in Python.

What license is Scalene: High-performance profiler for Python measuring CPU, GPU, and memory under?

Scalene: High-performance profiler for Python measuring CPU, GPU, and memory is released under the Apache-2.0 license.

Related Projects

No results yet

Explore More

Similar Tools

Cursor

Cursor

A smart code editor based on secondary development of VS Code, with "native built-in AI" as its core selling point. It does not rely on plugins but deeply integrates AI into the underlying architecture of the editor, enabling it to understand the context of the entire project's codebase. It also supports seamless migration of all VS Code configurations and plugins.

Google Antigravity

Google Antigravity

Antigravity supports multiple models, including Gemini 3 Pro, Claude Sonnet 4.5, and GPT-OSS, allowing developers to select the most suitable model for their tasks within the same environment.

Codex

Codex

OpenAI Codex is an AI programming model and assistant developed by OpenAI, capable of translating natural language instructions into corresponding source code. It provides developers with intelligent code completion and code generation functionalities. Initially launched in 2021 as the code model for the OpenAI API, it once served as the core engine for GitHub Copilot. With the evolution of OpenAI's technology, Codex returned in 2025 in a new form as an "AI programming agent," capable of understanding complex requirements and automatically writing and debugging code, significantly enhancing development efficiency and software delivery speed.

Kiro

Kiro

Kiro is an AI-powered programming IDE launched by AWS, which adopts a specification-driven development model. It transforms natural language requirements into clear specification documents and tasks, then uses built-in AI agents to generate code, debug, and optimize, providing comprehensive assistance throughout the development process of large-scale projects.

Trae

Trae

Trae (official website: trae.ai) is an AI-native integrated development environment (IDE) launched by ByteDance. It is not merely a programming assistant but rather a "collaborative partner" that deeply integrates large language models (LLMs) to help developers achieve more intelligent and automated software development—from requirements analysis and code construction to debugging and deployment.

Claude

Claude

Claude is an intelligent language interaction platform developed by the American AI company Anthropic. It integrates capabilities such as deep text understanding, information organization, code assistance, and task analysis, enabling it to handle more complex tasks beyond simple chat conversations. These include long-text summarization, image analysis, logical reasoning, and programming assistance, among others. Compared to some single-purpose Q&A bots, Claude functions more like an intelligent tool equipped with reasoning logic and scalable features.

Comments

Comments

0
0/500 Characters

No comments yet

Be the first to comment

Open Source Projects

Explore, learn and contribute to open source AI projects to advance the development of artificial intelligence technology

View All