Skip to content

Instantly share code, notes, and snippets.

View agarwal's full-sized avatar

Ashish Agarwal agarwal

View GitHub Profile
@taoliu
taoliu / prockmon
Created January 6, 2012 21:15
Monitor user time and memory usage of a process
#!/bin/bash
if [[ $# < 2 ]];then
echo 'need two parameters: $0 <interval> <pid>'
exit 1;
fi
INTERVAL=$1
PID=$2