Skip to content

Commit 7835c09

Browse files
committed
Add CPU example
1 parent fe0060e commit 7835c09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,8 @@ Test by appending single values by hand:
118118
Test of plotting a ping command
119119

120120
`ping www.toyota.co |awk '{print $7; fflush()}'|awk -F'=' '{print $2; fflush()}' >> data.txt`
121+
122+
Test of plotting CPU usage (macos):
123+
124+
`while true; do ps -A -o %cpu | awk '{sum+=$1} END {print sum}' >> data.txt; sleep 1; done`
125+

0 commit comments

Comments
 (0)