xref: /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/php_malloc_example.txt (revision 53b02e147d4ed531c0d2a5ca9b3e8026ba3e99b5)
1Following are examples of running php_malloc.d.
2
3Here it is running on Code/Php/func_abc.php
4
5   # php_malloc.d -p 18523
6   Tracing... Hit Ctrl-C to end.
7   ^C
8
9   PHP malloc byte distributions by engine caller,
10
11
12   PHP malloc byte distributions by PHP file and function,
13
14
15Theoretically this should show you mallocs.  However there weren't any in this
16example.  The rest of these example files would have been so much easier to
17write if they were all like this.  I would have been finished by now and would
18have been flicking through the TV channels with a nice, cold beer in hand.
19
20
21... Fixing this example is on my todo list.  Check for newer versions of the
22toolkit.
23
24