Attach to running process perf

Profile an already-running process for 5 seconds

perf record -p 1234 sleep 5