script to graph cpu/mem usage

Use as:
RESOURCE_TIME=5 make resource_graph