https://github.com/mickel8/system_info
Simple program for measuring CPU load for a period of time
https://github.com/mickel8/system_info
c cpu-monitoring metrics performance system
Last synced: over 1 year ago
JSON representation
Simple program for measuring CPU load for a period of time
- Host: GitHub
- URL: https://github.com/mickel8/system_info
- Owner: mickel8
- License: mit
- Created: 2021-08-02T20:19:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-08T11:22:44.000Z (almost 5 years ago)
- Last Synced: 2025-01-22T08:47:13.143Z (over 1 year ago)
- Topics: c, cpu-monitoring, metrics, performance, system
- Language: C
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# system_info
Simple program for measuring CPU load for a period of time.
## Requirements
Linux kernel version >= 2.6.33
## Compile and run
Compile with:
```bash
make compile
```
Run with:
```bash
# measure cpu load every 1 second for 60 seconds and save results to a file with unix timestamp name
./system_info
# the same as above but with interval of 2 seconds
./system_info --interval 2
# measure cpu load every 2 seconds for 20 seconds and save it to a file `cpu_load.csv`
./system_info --file cpu_load.csv --time 20 --interval 2
```
Other combinations of options are possible.
For more information refer to:
```bash
./system_info --help
```