profile.sh 478 B

1234567891011121314151617181920212223
  1. #! /bin/sh
  2. # profile all modules
  3. # results go to "profile.dat"
  4. # Note: on a 400 MHz Pentium II this uses around 1 hour of CPU time.
  5. # and on faster machines MUCH less!
  6. # This script may be passed a directory as arg1, but if not it expects
  7. # to find my source files in "../cslbase"
  8. if test -n "$1"
  9. then srcdir="$1"
  10. else srcdir=../cslbase
  11. fi
  12. rm profile.dat
  13. ./slowr38 -v -i slowr38.img -Dno_init_file $srcdir/../util/profile.red -D@srcdir=$srcdir -- log/profile.log