Skip to content

akhan3/streaming-gnuplot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realtime stream plotting with gnuplot

Requirements

  • gnuplot
  • Perl
  • stdbuf

Demo

For a demo, use the following snippets.

$ ./sine_cosine.pl | ./driveGnuPlots.pl 2 50 500 "Sine" "Cosine"
$ ./sine.pl | ./driveGnuPlots.pl 1 50 "Sine"

CPU utilization

To plot CPU utilization for the past 60 seconds, use the snippet below.

$ vmstat 1 | stdbuf -oL awk '{print "0:" 100-$(NF-2)}' | ./driveGnuPlots.pl 1 60 "CPU"

Please note that stdbuf is the key here, without which the pipeline won't work as intended.

Credits

TODO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages