mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-05 21:20:38 +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);
|
|
}
|
|
|
|
|