Add script for performance-guided optimization. Ignore pgo files.
Thanks to @gwern & @FeepingCreature for showing this to me.
This commit is contained in:
parent
8639866dcc
commit
ee56182f61
2 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
|||
*.dSYM
|
||||
*.gcda
|
||||
*.o
|
||||
*.plist
|
||||
.deps
|
||||
|
|
|
|||
12
pgo.sh
Executable file
12
pgo.sh
Executable file
|
|
@ -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…
Reference in a new issue