mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
19 lines
216 B
D
19 lines
216 B
D
#!/usr/sbin/dtrace -s
|
|
|
|
syscall:::entry
|
|
/pid == $target/
|
|
{
|
|
@calls[ustack(10), probefunc] = count();
|
|
}
|
|
|
|
profile:::tick-1sec
|
|
{
|
|
/** print */
|
|
printa(@calls);
|
|
/** clear */
|
|
clear(@calls);
|
|
trunc(@calls, 15);
|
|
}
|
|
|
|
|