iPhone Simulator takes a few minutes to load, so I track the execution time of system calls to speed up the boot time:
sudo dtruss -a -f "sudo -u flopez \"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator\"" 3>&1 1>trace.txt 2>trace.txt
And I found two particularly slow system calls:
awk '{ if ($2 >= 50000000 ) print }' trace.txt
PID/THRD ELAPSD SYSCALL(args) = return
1614/0x4dfd: 156374511 select(0x4, 0x7FFCE8404C90, 0x7FFCE84071E0, 0x0, 0x0) = -1 Err#4
1645/0x4fbf: 104751284 kevent64(0x3, 0x0, 0x0) = -1 Err#4
Note that the system call select()took 104 seg and finally ended in error, so it would be useful to find the file path associated with this call.
How to find this file?
source
share