Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jwheare/plotgraph

Google charts hacks
https://github.com/jwheare/plotgraph

Last synced: 8 days ago
JSON representation

Google charts hacks

Awesome Lists containing this project

README

        

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