title: Linux application profiling
body: <p>How can I record the performance of an application on a Linux machine? I won't have an IDE.</p>
  <p>Ideally, I need an application that will attach to a process and log periodic snapshots of:</p>
  <ul>
  <li>memory usage</li>
  <li>number of threads</li>
  <li>CPU usage</li>
  </ul>