aboutsummaryrefslogtreecommitdiff
path: root/Man/man1m/py_malloc.d.1m
blob: 4468da8ae2b9b652fe92c20d7005e4f33b1e272f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.TH py_malloc.d 1m   "$Date:: 2007-10-03 #$" "USER COMMANDS"
.SH NAME
py_malloc.d - Python libc malloc analysis.
.SH SYNOPSIS
.B py_malloc.d
{ \-p PID | \-c cmd }	
.SH 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 Python function, then that function is
identified as responsible; else the caller of malloc() is identified as
responsible - which will be a function from the Python engine.

Filename and function names are printed if available.
.SH OS
Any
.SH STABILITY
Evolving - uses the DTrace Python provider, which may change 
as additional features are introduced. Check Python/Readme
to see what version these scripts are based on.
.SH EXAMPLES
.TP
Default output,
# 
.B py_malloc.d
.PP
.PP
.SH 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.
.SH EXIT
py_malloc.d will run until Ctrl-C is hit.
.SH AUTHOR
Brendan Gregg
[CA, USA]
.SH SEE ALSO
dtrace(1M)