mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Cleaned bench folder
This commit is contained in:
parent
fd53472238
commit
a4ec91fd06
4
bench/logs/.gitignore
vendored
4
bench/logs/.gitignore
vendored
@ -1,4 +0,0 @@
|
|||||||
# Ignore everything in this directory
|
|
||||||
*
|
|
||||||
# Except this file
|
|
||||||
!.gitignore
|
|
19
bench/mem
19
bench/mem
@ -1,19 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ $# -lt 1 ]; then
|
|
||||||
echo "usage: $0 <program>"
|
|
||||||
fi
|
|
||||||
|
|
||||||
PROG=$1
|
|
||||||
|
|
||||||
if [ ! -x "$PROG" ]; then
|
|
||||||
echo $PROG not found or not executable.
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
$* &
|
|
||||||
PID=$!
|
|
||||||
|
|
||||||
while `kill -0 $PID 2>/dev/null`; do
|
|
||||||
ps -eo size,pid,user,pcpu,command --sort -size | awk '{ line=1 ; hr=$1/1024 ; printf("%13.2f Mb ",hr); } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | grep -v grep | grep -v $0 | grep $PROG
|
|
||||||
done
|
|
Loading…
Reference in New Issue
Block a user