print memory/cpu usage for given command line