Strace – Notes and how to use it

Got most of this from this video.

What files is a program opening?

strace -etrace=open google-chrome

strace -etrace=open google-chrome

What child processes are spawned?

strace -etrace=execve google-chrome

  • write = what is written to
  • execve = what child processes are opened
  • open = what files are opened up

perf – what does it do?