A simple resource monitor