title: Linux: CPU and memory usage for a program
body: <p>I have a bash script that calls different c++ programs (some of them are multithread). I want to know what is the CPU and memory usage (maximum or average) during the execution of that script. There is a special tool for that?</p>
  
  <p>Thanks.</p>