Created
December 16, 2012 06:17
-
-
Save wolfeidau/4303786 to your computer and use it in GitHub Desktop.
levelup intial dtrace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # cat syscalltime.d | |
| syscall:::entry | |
| { | |
| k = probefunc; | |
| } | |
| tick-5000hz | |
| /k != 0/ | |
| { | |
| @[k] = count(); | |
| } | |
| # dtrace -s syscalltime.d -c "node ./ ." | |
| ... | |
| getdirentries64 100 | |
| psynch_cvwainal 102 | |
| psynch_cvwaital 107 | |
| psynch_cvbroad 119 | |
| geteuid 135 | |
| proc_info 135 | |
| fcntl 147 | |
| sendmsg 183 | |
| stat64 212 | |
| gettimeofday 225 | |
| __mac_syscall 226 | |
| ftruncate 235 | |
| poll 252 | |
| open 255 | |
| bsdthread_terminate 260 | |
| sigprocmask 262 | |
| recvmsg 290 | |
| mprotect 314 | |
| ioctl 344 | |
| munmap 718 | |
| close 839 | |
| write 983 | |
| workq_kernreturn 998 | |
| __sysctl 1006 | |
| read 1753 | |
| sigaltstack 1772 | |
| mmap 4968 | |
| madvise 8309 | |
| psynch_mutexdrop 12456 | |
| psynch_mutexwait 13179 | |
| kevent 17977 | |
| __semwait_signal 18751 | |
| psynch_cvsignal 66818 | |
| psynch_cvwait 90700 | |
| # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment