Update README.md
This commit is contained in:
@@ -177,13 +177,15 @@ The results will look almost identical to my A1. Each 'frame' will show the opti
|
||||
```
|
||||
### Examples:
|
||||
Graph the memory usage every half second for 20 samples
|
||||
```
|
||||
./myMonitoringTool 20 500000 --memory
|
||||
./myMonitoringTool --memory --samples=20 --tdelay=500000
|
||||
|
||||
```
|
||||
Graph the cpu usage every half second for 200 samples, then show system information
|
||||
```
|
||||
./myMonitoringTool 200 500000 --cpu --cores
|
||||
./myMonitoringTool --cpu --cores --samples=20 --tdelay=500000
|
||||
|
||||
```
|
||||
## 8. Test Cases
|
||||
I tested for one-off errors in number of samples printed in the graph, capping values to 100% and prventing them from going over the graph, different combinations of Ctrl+C/Z and resuming, and various CLA arguments. All goes well and all cases are handled. If invalid CLA are provided the program will warn to STDOUT (not STDERR like others as this is the users err so they have to look at it) and exit.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user