lokinet/contrib/dtrace/profiler.d
2018-10-29 09:31:37 -04:00

21 lines
196 B
D

#!/usr/bin/dtrace -s
// lokinet dtrace profiler
dtrace::BEGIN
{
}
syscall:::entry
/pid == $1/
{
@syscalls[probefunc] = count();
}
profile:::tick-1sec
{
printa("%@8u %a\n", @syscalls);
}