aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 1b527a54fdf80bce30c537bf5050dc6f5e33ea3b (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
# watchdog

Monitor CPU usage by process and report bursts to a logfile.

## Invocation

```sh
watchdog [logfile]
```

Default logfile is `watchdog.log` in the current directory.

## Build

Compile using `make` or `cc watchdog.c -O3 -o watchdog`.

See [watchdog.c](watchdog.c) for configuration options.

Install to PREFIX using `make install`.

## Test watchdog

```sh
$ watchdog &
$ tail -f watchdog.log
$ cat < /dev/random > /dev/null # in a different shell
```