# KDE/heaptrack

A heap memory profiler for Linux

Repository: https://github.com/KDE/heaptrack
Canonical: https://ross.abutalabs.com/products/heaptrack
Homepage: https://invent.kde.org/sdk/heaptrack
Language: C++
License Family: other
Last push: 2026-08-12T04:14:35+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 8, longevity 100
- inputs: {"age_days": 4002, "days_push": 21, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4154, forks 241 (observed 2026-08-28T04:08:36.543886+00:00)

## What it is
Heaptrack is a heap memory profiler for Linux that traces every memory allocation and annotates it with a stack trace. It ships with command-line and GUI analysis tools that interpret the recorded profile to reveal memory leaks, allocation hotspots, and temporary allocations.

## Use cases
- find memory leaks in a C++ application
- profile heap memory allocations on linux
- reduce my application's memory footprint
- find which code locations allocate the most memory
- detect excessive temporary allocations that churn the heap
- attach a memory profiler to an already running process
- record memory traces on an embedded linux device and analyze them later

## When to choose
- You need heap-level allocation tracing with stack traces for native Linux applications
- You are hunting memory leaks, allocation hotspots, or temporary allocations in C/C++ code
- You profile embedded targets without debug symbols and want to interpret traces later against a sysroot

## When to avoid
- You need CPU, GPU, or I/O profiling rather than heap memory analysis
- You develop on Windows or macOS, since heaptrack is Linux-only
- You need to profile managed runtimes like the JVM or JavaScript rather than native allocations

## Facets
- artifact type: cli-tool
- maturity: active
- function: tracing, monitoring, developer-tools, cli, gui
- domain: developer-tools, performance
- platform: cli, embedded, cpp
- tags: memory-profiler, heap-analysis, memory-leak-detection, allocation-tracking, stack-traces, performance-profiling, kde, gdb-injection, valgrind-alternative, command-line, linux, desktop

## Member repositories
- KDE/heaptrack (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:36.543886+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:22:52.699837+00:00, confidence not recorded.
  - readme: https://github.com/KDE/heaptrack (fetched 2026-08-28T04:08:36.543886+00:00, sha 4e8ac3955726)
  - homepage: https://invent.kde.org/sdk/heaptrack (fetched 2026-08-29T09:13:39.527583+00:00, sha 24d592b1edec)
  - site_page: https://invent.kde.org/sdk/heaptrack/-/releases (fetched 2026-08-29T09:13:39.530024+00:00, sha a2d24b31bcac)
- Data as of 2026-08-30T08:39:29.467469+00:00.
