qmetrics.net

Memory Profiler

Python process and line-by-line memory profiling

Memory Profiler is no longer maintained. The project says: “Note: This package is no longer actively maintained.” source Look at the maintained alternatives below before choosing it.

Memory Profiler screenshot

A pure Python module and mprof CLI that report per-line and time-based memory use for Python programs, built on psutil.

Overview

Memory Profiler monitors memory consumption of a Python process and can break usage down line by line within functions. It installs via pip or conda-forge and depends on the psutil module for process metrics. The package is no longer actively maintained.

Line-by-line mode decorates functions with @profile and runs the script with python -m memory_profiler, printing memory after each executed line. A decorator import from memory_profiler.profile works without the -m flag, with optional precision control unless overridden by the module runner.

The mprof utility records memory over time for arbitrary executables or Python scripts, stores timestamped profiles, and plots them with matplotlib, including optional flame-style views when function entry and exit are tracked. It supports multiprocess and forked child reporting via flags such as --include-children and --multiprocess.

A programmatic memory_usage API samples RSS for a PID or while running a callable. IPython integrations provide %mprun, %%mprun, %memit, and %%memit magics when the extension is loaded. Multiple memory tracking backends include psutil, posix, and tracemalloc variants.

Key features

  • Line-by-line memory usage reports
  • @profile decorator and -m runner
  • mprof time-series capture and plots
  • Multiprocess child memory tracking
  • memory_usage programmatic API
  • IPython %mprun and %memit magics
  • Log and logger redirect options
  • Selectable memory backends

Use cases

  • Finding which lines allocate memory
  • Plotting memory over a run
  • Checking multiprocessing memory use
  • Notebook peak memory estimates
  • Detecting gradual memory growth

Similar software

AgentOps

Open-source observability SDK for AI agents

AgentOps is a Python SDK that monitors AI agents, tracks LLM costs, and records sessions for debugging. It plugs into common agent frameworks and model providers.

  • Session replay analytics
  • LLM cost tracking
  • Framework integrations
PythonDetails →
★ 6k⟳ 5 months agoMIT

Clockwork

In-browser PHP application runtime inspector

Clockwork is a PHP development library that records request, command, queue, and test runtime details and exposes them in a browser UI. It captures queries, logs, events, jobs, views, and performance data.

  • HTTP request profiling data
  • Database and cache query logging
  • Redis command and event capture
PHPDetails →
★ 5.9k⟳ 3 months agoMIT

Django Silk

Live profiling and request inspection for Django

Silk is a Django package that records HTTP requests, SQL queries, and optional Python profiles, then exposes them in a /silk/ web UI for debugging slow pages and queries.

  • HTTP request and SQL capture
  • Web UI at /silk/
  • Optional cProfile per request
PythonDetails →
★ 5k⟳ 1 month agoMIT

Micrometer

Vendor-neutral JVM application observability facade

Micrometer instruments JVM applications with dimensional metrics and tracing through a neutral API. You choose Prometheus, Datadog, OTLP, and many other backends at deploy time.

  • Vendor-neutral metrics API
  • Dimensional meters
  • Many backend registries
JavaDetails →
★ 4.9k⟳ todayApache-2.0

Log Viewer

Browser log viewer package for Laravel applications

Laravel package that adds a web UI to read, search, and filter application and server log files in the browser.

  • Laravel storage log browsing
  • Horizon, web server, and service logs
  • Search and level filtering
PHPWebDetails →
★ 4.4k⟳ 5 months agoMIT

KOOM

Android online memory monitoring for OOM and heap leaks

KOOM is Kwai's toolkit for high-performance online memory monitoring on mobile. It reports when out-of-memory-related problems occur and is available for Android apps.

  • Online OOM and memory issue reporting
  • Java heap leak monitoring module
  • Native heap leak monitoring
C++AndroidDetails →
★ 3.4k⟳ 1 month agoApache-2.0 · open core