To track and plot memory/cpu usage of  process.