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
2 changed files with 13 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +12
    -0
      pgo.sh

+ 1
- 0
.gitignore View File

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


+ 12
- 0
pgo.sh View 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…
Cancel
Save