How to determine where code spends a lot of time in a kernel space (system calls)
问题 I noticed that 10% my code run is system space. However I do NOT know which system calls. I suspect, though, it is either has to do files or timestamps. Is there a tool to figure out which system calls are the culprits? Also, I want to know the frequency of (and location) of calls (and callee) . I am on AS3 thx 回答1: Both strace and truss will help you see which system calls are taking time. Two useful options for strace are: -T to show the time spent in each system call, -c to summarize