Search by

vanta / dump-meminfo

shashkov.root

dump-meminfo command: dump the memory of a running PHP process with the meminfo extension

0.1 2026-10-23 21:54 UTC

This package is auto-updated.

Last update: 2026-10-24 18:17:15 UTC


README

The dump-meminfo command: dumps the memory of an already running PHP process to a JSON file and prints its path. It is a thin wrapper over meminfo_dump_process() of the meminfo extension.

composer require --dev vanta/dump-meminfo
vendor/bin/dump-meminfo <pid> [--dir=DIR] [--signal=SIG] [--timeout=SEC] [--force] [--count=N] [--interval=TIME]

--count=3 --interval=5m takes a series of dumps and prints their paths in order. Opened together in the browser UI, they show what grows at every step and the objects left behind between the first two.

The command needs the meminfo extension loaded, and so does the process it dumps. Install the extension with PIE:

pie install vanta/meminfo

Open the dump in the browser UI (nothing is uploaded): https://vantafinance.github.io/php-meminfo/

This repository is a read-only split of the cli/ directory of VantaFinance/php-meminfo. Send issues and pull requests there.