profiling.sh 180 B

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