This is a program that logs CPU + memory utilization of a process ID for every N seconds to a CSV file.
go run main.go PID N FILENAME
Press 'q' to gracefully stop the process
go run main.go 3181 2s output.csv
- Streams the readings to the file instead of loading in memory.
- Save the readings to .png file