Added profiling instructions to TESTING.md

This commit is contained in:
Garret Rieger 2019-09-27 09:55:17 -07:00
parent 1f0a9d9be9
commit cf414e361a

View File

@ -73,3 +73,14 @@ sudo python infra/helper.py build_image harfbuzz
sudo python infra/helper.py build_fuzzers --sanitizer address harfbuzz
sudo python infra/helper.py run_fuzzer harfbuzz hb-subset-fuzzer
```
## Profiling
```
make clean
./configure CXXFLAGS="-fno-omit-frame-pointer -g"
make
perf record -o <perf output file> -g <command to run>
perf report -i<perf output file>
```