monitor logs cpu and memory usage of a running application