profiling.sh 182 B

123456789
  1. #!/bin/bash
  2. gcc _build.c -lutil -o ._build -ggdb \
  3. && ./._build -pd \
  4. && gdb -x ~/.gdbinit -ex=r --args ./sengen $@ \
  5. && gprof ./sengen gmon.out > prof.out \
  6. && nano prof.out