Last active
January 4, 2017 14:47
-
-
Save LuxoftAKutsan/d61dff15a3038589056f666db3fcb3f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Scripts : | |
ps u | grep smart | grep -v grep | awk -v time="$(date +'%r')" '{print time, $6 }' | |
// Plot graph : | |
reset; | |
G_dat = './release4.1.0_no_logs_memory_usage.txt' | |
G_pic_w = 1000 | |
G_pic_h = 800 | |
G_Title = "SDL memory usage without logs"; | |
G_XLabel = "X - time"; | |
G_YLabel = "Y - Memory usage"; | |
#set terminal wxt enhanced size 1000,500 | |
set title G_Title font ",16"; | |
set xlabel G_XLabel font ",12"; | |
set ylabel G_YLabel font ",12"; | |
set grid ytics xtics | |
set xdata time | |
set timefmt "%H:%M:%S" | |
set format x "%M:%S" | |
plot G_dat using 1:2 with lines title columnhead(2) | |
pause 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment