Browse Source

Add script for performance-guided optimization. Ignore pgo files.

Thanks to @gwern & @FeepingCreature for showing this to me.
pull/1058/head
Geoff Greer 4 years ago
parent
commit
ee56182f61
  1. 1
      .gitignore
  2. 12
      pgo.sh

1
.gitignore

@ -1,4 +1,5 @@
*.dSYM
*.gcda
*.o
*.plist
.deps

12
pgo.sh

@ -0,0 +1,12 @@
#!/bin/sh
set -e
cd "$(dirname "$0")"
make clean
CFLAGS="$CFLAGS -fprofile-generate"
./build.sh
./ag example ..
make clean
CFLAGS="$CFLAGS -fprofile-use"
./build.sh
Loading…
Cancel
Save