mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +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);
|
|
}
|
|
|
|
|