Skip to content

Instantly share code, notes, and snippets.

@irgaly
Created March 17, 2022 03:59
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 irgaly/d289158e27be4366946bbadc82d47a90 to your computer and use it in GitHub Desktop.
Save irgaly/d289158e27be4366946bbadc82d47a90 to your computer and use it in GitHub Desktop.
Gradle memory usage plot
set terminal png small size 1024, 1024
set output "memory_usage.png"
set title "JVM memory usage"
set ylabel "usage (MB)"
plot "jvm_usage.dat" using 2 title "JVM memory usage", \
"jvm_usage.dat" using 3 title "JVM memory total", \
"task_completion.dat" using 1:2:xticlabels(3)
set title "OS memory usage"
set ylabel "usage (MB)"
plot "os_usage.dat" using 2 title "OS memory usage", \
"os_usage.dat" using 3 title "OS memory total", \
"task_completion.dat" using 1:2:xticlabels(3)
set title "Native memory usage"
set ylabel "usage (MB)"
plot "native_usage.dat" using 2 title "Native memory usage", \
"native_usage.dat" using 3 title "Native memory total", \
"task_completion.dat" using 1:2:xticlabels(3)
# jvm_usage.dat
# 02:45:03 {jvm usage} {jvm total}
# os_usage.dat
# 02:45:03 {os usage} {os total}
# native_usage.dat
# 02:45:03 {native usage} {native total}
# task_completion.dat
# 02:45:03 0 {task name}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment