[clang] Improve documented sampling profiler steps to best known methods (PR #88438)
Tim Creech via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 19 14:00:05 PDT 2024
================
@@ -2443,27 +2443,29 @@ usual build cycle when using sample profilers for optimization:
usual build flags that you always build your application with. The only
requirement is that DWARF debug info including source line information is
generated. This DWARF information is important for the profiler to be able
- to map instructions back to source line locations.
+ to map instructions back to source line locations. The usefulness of this
+ DWARF information can be improved with the ``-fdebug-info-for-profiling``
+ and ``-funique-internal-linkage-names`` options.
----------------
tcreech-intel wrote:
Thanks, @chrulski-intel -- good point. I'll add a brief note.
@williamweixiao, I think you're right that they should match. I'll update those steps.
https://github.com/llvm/llvm-project/pull/88438
More information about the cfe-commits
mailing list