File: memory.sh

package info (click to toggle)
toppic 1.8.0%2Brepack1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 111,364 kB
  • sloc: cpp: 62,240; xml: 8,121; javascript: 1,356; python: 755; sh: 108; makefile: 24
file content (6 lines) | stat: -rwxr-xr-x 68 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
#!/bin/sh
while [ true ]
do
  ps -p $1 -o %cpu,%mem
  sleep 20
done