https://github.com/gfrn/cpu-mon
Tool to poll for PID sys/usr CPU usage at high frequencies
https://github.com/gfrn/cpu-mon
cpu-usage monitoring-tool
Last synced: 8 months ago
JSON representation
Tool to poll for PID sys/usr CPU usage at high frequencies
- Host: GitHub
- URL: https://github.com/gfrn/cpu-mon
- Owner: gfrn
- Created: 2020-11-10T18:30:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-30T13:22:06.000Z (over 4 years ago)
- Last Synced: 2025-04-06T16:18:22.697Z (10 months ago)
- Topics: cpu-usage, monitoring-tool
- Language: C
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# High Frequency CPU Monitor
Tool meant for aiding in monitoring singular process CPU loads. Polls /proc/ every n ms.
## Usage
`gcc monitorProc.c -o cpuMon`
`./cpuMon ParentPID SpawnedThread/ParentPID SpawnedThread2/ParentPID [...]` followed by a `p` for /proc/stat poll only mode or leave empty for main thread + spawned threads
Example: `./cpuMon 988 1233 1232 p` or `./cpuMon 988 1233 1232`