ramusage: Initial version.

This commit is contained in:
Ole Tange 2016-10-03 20:55:13 +02:00
parent ee13554589
commit 5bc35e8870
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,4 @@
CMD = blink bsearch histogram upsidedown tracefile timestamp rand rrm goodpasswd gitnext
CMD = blink bsearch histogram upsidedown tracefile timestamp rand rrm goodpasswd gitnext ramusage ramusage
all: blink/blink.1 bsearch/bsearch.1 goodpasswd/goodpasswd.1 histogram/histogram.1 rand/rand.1 rrm/rrm.1 timestamp/timestamp.1 tracefile/tracefile.1 upsidedown/upsidedown.1 wssh/wssh.1
@ -7,6 +7,6 @@ all: blink/blink.1 bsearch/bsearch.1 goodpasswd/goodpasswd.1 histogram/histogram
install:
mkdir -p /usr/local/bin
parallel eval ln -sf `pwd`/*/{} /usr/local/bin/{} ::: blink bsearch reniced em field forever neno rn stdout tracefile w4it-for-port-open upsidedown histogram goodpasswd mtrr not summer timestamp transpose wssh aptsearch rand rrm gitnext
parallel eval ln -sf `pwd`/*/{} /usr/local/bin/{} ::: $(CMD)
mkdir -p /usr/local/share/man/man1
parallel ln -sf `pwd`/{} /usr/local/share/man/man1/{/} ::: */*.1

5
ramusage/ramusage Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
/usr/bin/time -v "$@" 2>&1 |
grep 'Maximum resident set size' |
perl -pe 's/.*:\s//'