Created
March 24, 2015 17:38
-
-
Save tylerflint/bdb51ecab211b50a7c39 to your computer and use it in GitHub Desktop.
dtrace quantize all userland exec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dtrace -n ' | |
proc:::exec-success | |
{ | |
self->startexec = timestamp; | |
self->exec = execname; | |
} | |
proc:::exit | |
/self->exec != 0/ | |
{ | |
@[self->exec] = quantize((timestamp - self->startexec)); | |
self->startexec = 0; | |
self->exec = 0 | |
} | |
' -x aggpack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment