-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathsystime.d
More file actions
11 lines (10 loc) · 784 Bytes
/
systime.d
File metadata and controls
11 lines (10 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
/* Script to time how long non-boring syscalls take. */
syscall:::entry
{
x[pid, probefunc] = timestamp;
}
syscall:::return
/probefunc != "epoll_wait" && timestamp - x[pid, probefunc] > 100000/
{
printf("%-20s %d", execname, timestamp - x[pid, probefunc]);
}