Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 671 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 671 Bytes

processTrack

Credit

Loosely adapted from http://hints.macworld.com/article.php?story=2009102906322976

Usage

Invoke script with three arguments:

  • Process name(s) (Must be in quotes if more than one process)
  • Number of minutes to run
  • Number of samples per minute

Examples

If you want to sample Safari for 5 minutes with 30 samples per minute

processTrack.sh Safari 5 30

If you want to sample Safari and Chrome for 5 minutes with 30 samples per minute

processTrack.sh "Safari Chrome" 5 30

Hint

If opening output file with Excel (to create graphs, etc), open as space delimited, treating consecutive delimiters as one.