[clang] [analyzer][docs] Document how to use perf and uftrace to debug performance issues (PR #126520)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 11 04:52:29 PST 2025
================
@@ -45,3 +48,91 @@ Note: Both Chrome-tracing and speedscope tools might struggle with time traces a
Luckily, in most cases the default max-steps boundary of 225 000 produces the traces of approximately that size
for a single entry point.
You can use ``-analyze-function=get_global_options`` together with ``-ftime-trace`` to narrow down analysis to a specific entry point.
+
+
+Performance analysis using ``perf``
+===================================
+
+`Perf <https://perfwiki.github.io/main/>`_ is an excellent tool for sampling-based profiling of an application.
----------------
steakhal wrote:
Rephrased into `Perf is a tool for conducting sampling-based profiling.`
Fixed in aa5a2855ab041f57c0fe96870fa596970936681e.
https://github.com/llvm/llvm-project/pull/126520
More information about the cfe-commits
mailing list