aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorTim Creech <timothy.m.creech@intel.com>2024-04-29 02:54:14 -0400
committerGitHub <noreply@github.com>2024-04-29 14:54:14 +0800
commit66274eb9f7e7fc4b023343476c4d066e4413180a (patch)
tree78e4f788cf5508ef1d7cb83ef52ce78be9b096dc /clang/lib/CodeGen/CodeGenFunction.cpp
parentec6c0a2b7da4a23a33de049ab9a07fd30fff56b8 (diff)
downloadllvm-66274eb9f7e7fc4b023343476c4d066e4413180a.zip
llvm-66274eb9f7e7fc4b023343476c4d066e4413180a.tar.gz
llvm-66274eb9f7e7fc4b023343476c4d066e4413180a.tar.bz2
Improve documented sampling profiler steps to best known methods (#88438)
1. Add `-fdebug-info-for-profiling -funique-internal-linkage-names`, which improve the usefulness of debug info for profiling. 2. Recommend the use of `br_inst_retired.near_taken:uppp`, which provides the most precise results on supporting hardware. Mention `branches:u` as a more portable backup. Both should portray execution counts better than the default event (`cycles`) and have a better chance of working as an unprivileged user due to the `:u` modifier.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions