We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e778640 commit ed25febCopy full SHA for ed25feb
contrib/load-tester/plot_memory.sh
@@ -14,17 +14,20 @@ function plot {
14
gnuplot memory.plot
15
}
16
17
-SLEEP=5
18
-COUNT=0
19
-while true; do
20
- vmdata=`getdatum VmData`
21
- vmrss=`getdatum VmRSS`
22
- echo "$(($COUNT * $SLEEP)) $vmdata" >> vmdata.log
23
- echo "$(($COUNT * $SLEEP)) $vmrss" >> vmrss.log
24
- COUNT=$(($COUNT + 1))
25
- sleep $SLEEP
26
-done
+function main {
+ SLEEP=5
+ COUNT=0
+ while true; do
+ vmdata=`getdatum VmData`
+ vmrss=`getdatum VmRSS`
+ echo "$(($COUNT * $SLEEP)) $vmdata" >> vmdata.log
+ echo "$(($COUNT * $SLEEP)) $vmrss" >> vmrss.log
+ COUNT=$(($COUNT + 1))
+ sleep $SLEEP
27
+ done
28
+}
29
30
+main
31
32
# on exit, do plot
33
trap plot EXIT
0 commit comments