Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwheare/plotgraph
Google charts hacks
https://github.com/jwheare/plotgraph
Last synced: 8 days ago
JSON representation
Google charts hacks
- Host: GitHub
- URL: https://github.com/jwheare/plotgraph
- Owner: jwheare
- Created: 2010-12-06T12:48:57.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2010-12-06T17:02:19.000Z (almost 14 years ago)
- Last Synced: 2023-04-13T08:19:52.142Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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