Skip to content

Instantly share code, notes, and snippets.

@tylerflint
Created March 24, 2015 17:38
Show Gist options
  • Save tylerflint/bdb51ecab211b50a7c39 to your computer and use it in GitHub Desktop.
Save tylerflint/bdb51ecab211b50a7c39 to your computer and use it in GitHub Desktop.
dtrace quantize all userland exec
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