12.07.2015 Views

dtrace_tips

dtrace_tips

dtrace_tips

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Tip: -c option●●●●To observe a program from start tofinish, use “-c cmd”$target is set to target process ID<strong>dtrace</strong> exits when command exits# <strong>dtrace</strong> -q -c date-n 'pid$target::malloc:entry{@ = sum(arg0)}'-n 'END{printa(“allocated %@d bytes\n”, @)}'Fri Feb 11 09:09:30 PST 2005allocated 10700 bytes#

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!