top -stats "command, cpu" | grep --line-buffered "iTerm2" > cpu.log