Skip to content

Instantly share code, notes, and snippets.

@Flackus
Created March 30, 2016 13:56
Show Gist options
  • Save Flackus/60d85958515bd222aaceef7eb6866e0c to your computer and use it in GitHub Desktop.
Save Flackus/60d85958515bd222aaceef7eb6866e0c to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
echo "set terminal png;\
set datafile separator \",\";\
set ylabel \"Mb\"; \
set yrange [0:2000]; \
plot \"mem.log\" using (\$0+1):(\$2/1000000) smooth csplines with line title \"rss\", \
\"mem.log\" using (\$0+1):(\$3/1000000) smooth csplines with line title \"heapTotal\", \
\"mem.log\" using (\$0+1):(\$4/1000000) smooth csplines with line title \"heapUsed\" \
" | gnuplot -p > out.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment