Skip to content

Instantly share code, notes, and snippets.

@LuxoftAKutsan
Last active January 4, 2017 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LuxoftAKutsan/d61dff15a3038589056f666db3fcb3f1 to your computer and use it in GitHub Desktop.
Save LuxoftAKutsan/d61dff15a3038589056f666db3fcb3f1 to your computer and use it in GitHub Desktop.
// 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