mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
23 lines
220 B
D
23 lines
220 B
D
#!/usr/sbin/dtrace -s
|
|
|
|
dtrace::BEGIN
|
|
{
|
|
}
|
|
|
|
syscall:::entry
|
|
/pid == $1/
|
|
{
|
|
@syscalls[probefunc] = count();
|
|
}
|
|
|
|
profile:::tick-1sec
|
|
{
|
|
printa(@syscalls);
|
|
foreach(k; @syscalls.keys.sort)
|
|
{
|
|
@syscalls[k] = 0;
|
|
}
|
|
}
|
|
|
|
|