qmetrics.net

Scalene

Python CPU, GPU, and memory profiler

Scalene profiles Python programs at line and function granularity for CPU, GPU, and memory, with a local web GUI and optional AI-suggested optimizations from several providers.

Overview

Scalene is a profiler for Python that separates time spent in Python, native libraries, system calls, and on NVIDIA GPUs when available. It uses sampling rather than heavy instrumentation so overhead stays comparatively low while still reporting detailed per-line figures.

The tool highlights hotspots in the report, tracks memory allocation and copying volume per line, flags likely leaks, and attributes async await time to the lines where coroutines suspend. Optional stack views stitch Python and native frames into flame charts, memory-weighted charts, and a timeline with GC, I/O, and GIL markers.

After a run, Scalene can open an interactive browser UI that works fully offline, with sorting, hover breakdowns, and standalone HTML export for sharing. A Visual Studio Code extension runs profiling from the editor command palette and shows results in a webview.

The command-line interface uses run, view, and config verbs, supports YAML configuration files, @profile decorators, pytest integration, and optional AI optimization suggestions when you configure keys for providers such as OpenAI, Azure, Bedrock, or local Ollama models.

Key features

  • Per-line CPU profiling
  • Python vs native vs system time
  • GPU time on NVIDIA systems
  • Per-line memory and copy volume
  • Async await attribution
  • Stitched Python and native stacks
  • Offline web GUI
  • AI optimization suggestions

Use cases

  • Finding Python performance bottlenecks
  • Debugging memory growth and leaks
  • Profiling async I/O concurrency
  • Sharing standalone profile HTML reports

Tags

Similar software

REA

MCP and CLI reverse-engineering toolkit for agents

REA connects coding agents and terminals to local analysis tools for binaries, Electron apps, websites, .NET, and Android targets. Setup registers MCP access and investigation skills via npm.

★ 480.8k⟳ todayMIT

Graphify

Codebase knowledge graph skill for AI coding assistants

Graphify maps a project’s code, docs, and media into a queryable local knowledge graph and installs as a skill for assistants such as Cursor and Claude Code.

★ 154.2k⟳ yesterdayApache-2.0

TypeScript

Typed JavaScript language with compile-time checks

TypeScript adds optional static types to JavaScript and compiles to standard JavaScript. It targets application-scale code on browsers, Node.js, and other JavaScript runtimes.

★ 111.9k⟳ yesterdayApache-2.0

Ghidra

NSA software reverse engineering and disassembly analysis suite

Ghidra is an NSA Research Directorate SRE framework with disassembly, decompilation, graphing, and scripting for analyzing compiled code on Windows, macOS, and Linux.

★ 101.5k⟳ yesterdayApache-2.0

Understand Anything

Interactive codebase knowledge graph for AI assistants

A multi-platform plugin that scans a project, builds a knowledge graph of structure and dependencies, and opens a searchable web dashboard. It supports domain views, guided tours, and diff impact analysis.

★ 94.7k⟳ 3 days agoMIT

Open Code Review

CLI agent for precise LLM-powered code review

Open Code Review reads Git diffs, applies deterministic review pipelines, and posts line-accurate comments via a tool-using LLM agent.

★ 56.9k⟳ 2 days agoApache-2.0
Open Source Alternative to:Greptile