<div dir="ltr">Hello llvm developers,<div><br></div><div>I wonder how to use the flag <b>-forder-file-instrumentation</b> for iOS Apps written in objective-C and swift?<br><div><br></div><div>I enabled the flags<b> -forder-file-instrumentation -mllvm -orderfile-write-mapping</b> <b>-fprofile-instr-generate </b>when building my iOS App, which is written in objective-C and swift. </div><div>After running the App on the iOS simulator on my macbook, a profraw.order file is generated in the simulator's folder. However, the file doesn't contain the correct contents. It contains too few bytes, also most data blobs are 32 bits (I believe the right format is 64-bits MD5), and many of them are duplicated. FWIW, here are the first few bytes:</div></div><div><pre style="color:rgb(0,0,0);white-space:pre-wrap">00000000: 70aa cb11 0100 0000 f8ac cb11 0100 0000  p...............
00000010: 90ab cb11 0100 0000 58aa cb11 0100 0000  ........X.......
00000020: ffff ffff 0000 0000 0000 0000 0000 0000  ................
00000030: 0000 0000 0000 0000 ffff ffff 0000 0000  ................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000070: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000080: 0000 0000 0000 0000 0000 0000 0000 0000  ................</pre></div><div>I wonder if the feature <b>-forder-file-instrumentation </b>is supported for iOS Apps that are written in objective-C and swift?  </div><div>If yes, then I wonder what's the proper steps to use it?</div><div><br></div><div>Thank you very much for your time.</div><div><br></div><div>Regards,</div><div>Jack</div><div><br></div></div>