script to graph cpu/mem usage. Related: #5259

Use as:
RESOURCE_TIME=5 make resource_graph

where RESOURCE_TIME are the minutes to run for.