pl_malloc.d(1m)

NAME
pl_malloc.d - Perl libc malloc analysis.

SYNOPSIS
pl_malloc.d { -p PID | -c cmd }

DESCRIPTION
This is an expiremental script to identify who is calling malloc() for memory allocation, and to print distribution plots of the requested bytes. If a malloc() occured while in a Perl subroutine, then that subroutine is identified as responsible; else the caller of malloc() is identified as responsible - which will be a function from the Perl engine. Filename and subroutine names are printed if available.

OS
Any

STABILITY
Evolving - uses the DTrace Perl provider, which may change as additional features are introduced. Check Perl/Readme to see what version these scripts are based on.

EXAMPLES

Default output,
    # pl_malloc.d

DOCUMENTATION
See the DTraceToolkit for further documentation under the Examples, Notes and Docs directories. The example files may be especially useful as they aim to demonstrate how to interpret the output.

EXIT
pl_malloc.d will run until Ctrl-C is hit.

AUTHOR
Brendan Gregg [CA, USA]

SEE ALSO
dtrace(1M)