Skip to content

Instantly share code, notes, and snippets.

@bisrael8191
bisrael8191 / process_graph.sh
Created March 20, 2015 05:53
Log and graph peformance metrics on a single process
#!/bin/bash
# Log and graph peformance metrics on a single process
# Based on: http://brunogirin.blogspot.com.au/2010/09/memory-usage-graphs-with-ps-and-gnuplot.html
#
# Requires gnuplot to be installed and on your path.
#
# Run: ./process_graph [process name] [pid]
DEFAULT_PROCNAME="Xorg"