qmetrics.net

Memray

Python memory profiler with native code allocation tracing

Memray screenshot

Memray records memory allocations in Python code, extension modules, and the interpreter, then produces reports such as flame graphs from CLI or library use.

Overview

Memray is a memory profiler for Python that traces allocations in application code, native C/C++ extensions, and the interpreter itself. Unlike sampling profilers, it records function calls so reports can show an accurate call stack, including native frames when native tracking is enabled.

Typical workflows start from the command line: memray run wraps a script, module, or application and writes a binary capture file that reporters turn into flame graphs, tables, or other views. Live mode offers a terminal interface to inspect allocation patterns while a program runs, with sorting by total memory, own memory, or allocation count and optional per-thread views.

Native mode adds C/C++ library allocations to the same traces, which helps when extensions such as NumPy or pandas allocate heavily outside Python. Memray works with Python threads and native threads, integrates with pytest through pytest-memray for per-test summaries and memory limits, and can also be enabled programmatically via its API.

Installation targets Python 3.9+ on Linux and macOS only; other platforms are unsupported. Profiling adds limited overhead, with native tracking somewhat slower and toggled on demand.

Key features

  • Full call-stack allocation tracing
  • Native C/C++ allocation tracking
  • Flame graph and other reporters
  • Live terminal profiling mode
  • pytest plugin with memory limits
  • Python and native thread support
  • CLI and programmatic API
  • Low overhead relative to sampling tools

Use cases

  • Diagnosing high memory usage in Python apps
  • Finding memory leaks
  • Profiling extension-heavy scientific stacks
  • Preventing memory regressions in tests
  • Optimizing allocation hotspots

Tags

Similar software

Uptime Kuma

Self-hosted uptime monitoring with status pages and alerts

Uptime Kuma is a self-hosted monitoring tool for checking whether services stay online. It covers many probe types and can notify you through numerous messaging and email channels.

  • HTTP, TCP, and ping monitors
  • WebSocket and DNS record checks
  • Docker container monitoring
JavaScriptLinux, Windows, DockerDetails →
★ 95.2k⟳ todayMIT
Open Source Alternative to:ChecklyPingdom+1

Netdata

Per-second full-stack infrastructure observability platform

Netdata collects metrics, logs, and traces where they are generated, with per-second resolution, built-in dashboards, alerts, and machine learning anomaly detection on every metric.

  • Per-second metric collection
  • ML anomaly detection per metric
  • OpenTelemetry ingestion
GoLinux, macOS, Windows, DockerDetails →
★ 81.8k⟳ todayGPL-3.0
Open Source Alternative to:AppDynamicsApplication Insights+13

Grafana

Composable observability and data visualization platform

Grafana queries, visualizes, and alerts on metrics, logs, and traces from many backends. Teams build and share dashboards to explore operational data.

  • Flexible visualization panels and plugins
  • Dynamic dashboards with template variables
  • Ad-hoc metrics explore and drilldown
GoDetails →
★ 78.5k⟳ todayAGPL-3.0
Open Source Alternative to:AppDynamicsApplication Insights+8

Prometheus

Open-source metrics monitoring and time series database

Prometheus collects metrics from configured targets, evaluates rules, and can raise alerts. It stores time series data and exposes a query language called PromQL.

  • Multi-dimensional time series model
  • PromQL query language
  • HTTP pull-based metric collection
GoDockerDetails →
★ 68.2k⟳ todayApache-2.0
Open Source Alternative to:CloudWatchDash0+6

Sentry

Developer error tracking and performance monitoring

Sentry is a debugging platform for detecting, tracing, and fixing application issues. SDKs connect code to error, performance, replay, and related signals in one workflow.

  • Error and exception tracking
  • Application performance monitoring
  • Connected logs, replays, and traces
PythonDetails →
★ 45.9k⟳ todaySource-available

Stats

Free macOS menu bar system monitor

Stats shows CPU, GPU, memory, disk, network, sensors, and battery readings from the macOS menu bar. It runs on Apple Silicon and Intel Macs with customizable modules and widgets.

  • Nine monitoring modules
  • Thirteen menu bar widget styles
  • CPU and GPU load with temperatures
SwiftmacOSDetails →
★ 43.8k⟳ todayMIT
Open Source Alternative to:iStat Menus