I'm trying to use profile-guided optimization in XCode 8.
I've followed the instructions here. I made sure to terminate my app using the stop button in XCode, as describe in the document.
I verified that the compile and link commands included the -fprofile-instr-generate
argument.
The process successfully generated a .profdata file, but the file is only 1064 bytes, which seems very small considering that my program executed tens, or hundreds of thousands of function calls during the profile generation. Running "xcrun -sdk iphoneos llvm-profdata show <profdata file>
" yields this output:
Total functions: 0
Maximum function count: 0
Maximum internal block count: 0
Which seems to indicate that my profdata file is completely empty!
At this point, I'm very stuck and I'm not sure how to generate a valid .profdata file. Can anyone offer guidance?