Thank you very much for the advice. I will try __gcov_dump first. Yuan
2015-06-02 12:14 GMT+08:00 Xinliang David Li <davi...@google.com>: > Using AutoFDO is one way. For PGO, you may want to to try using > __gcov_dump interface to explicitly control the timing and order of > the profile dump --- i.e., invoke __gcov_dump in main process after > work processes exit and before the main process exits.