Skip to content

jwheare/plotgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dumb graphing scripts that abuse Google Charts, your web browser, and your sense of good taste.

mem

Set the PID to the process you want to watch.

PID=38158; \
DATAPOINTS=400; \
WAITTIME=10; \
TITLE="Memory Usage"; \
LOGFILE=mem.log; \
open mem.html; \
(tail -n $DATAPOINTS $LOGFILE; \
 echo 'START'; \
 while [ 1 ] ; do \
    MEM=`ps -o rss= -p $PID`; \
    echo -e "`date`\t`date +%s`\t$MEM"; \
    sleep $WAITTIME; \
 done | tee -a $LOGFILE \
) | php mem.php $DATAPOINTS $TITLE

About

Google charts hacks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages