blob: 932c99b1483c7334e5df2d5b157fe072512c7214 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# burstdog
Monitor CPU usage by process and report bursts to a logfile.
## Invocation
```sh
burstdog [logfile]
```
Default logfile is `burstdog.log` in the current directory.
The openrc service logs to `/var/log/burstdog.log`.
## Build
Compile using `make` or `cc burstdog.c -O3 -o burstdog`.
See [burstdog.c](burstdog.c) for configuration options.
Install to PREFIX using `make install`.
To install openrc service file, use `make install-rc`.
## Test burstdog
```sh
$ burstdog &
$ tail -f burstdog.log
$ cat < /dev/random > /dev/null # in a different shell
```
|