[all-commits] [llvm/llvm-project] c1d5be: [analyzer] Add time-trace scopes for high-level an...

Arseniy Zaostrovnykh via All-commits all-commits at lists.llvm.org
Wed Feb 5 08:22:41 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1d5be8f7fa24b95e652593f9a780005e6604920
      https://github.com/llvm/llvm-project/commit/c1d5be8f7fa24b95e652593f9a780005e6604920
  Author: Arseniy Zaostrovnykh <necto.ne at gmail.com>
  Date:   2025-02-05 (Wed, 05 Feb 2025)

  Changed paths:
    M clang/docs/analyzer/developer-docs.rst
    A clang/docs/analyzer/developer-docs/PerformanceInvestigation.rst
    A clang/docs/analyzer/images/speedscope.png
    M clang/include/clang/Analysis/ProgramPoint.h
    M clang/lib/Analysis/ProgramPoint.cpp
    M clang/lib/StaticAnalyzer/Core/BugReporter.cpp
    M clang/lib/StaticAnalyzer/Core/BugSuppression.cpp
    M clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
    M clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
    M clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
    A clang/test/Analysis/ftime-trace.cpp

  Log Message:
  -----------
  [analyzer] Add time-trace scopes for high-level analyzer steps (#125508)

Specifically, add a scope for 
- each work-list step,
- each entry point,
- each checker run within a step, and
- bug-suppression phase at the end of the analysis of an entry-point.

These scopes add no perceptible run-time overhead when time-tracing is
disabled. You can enable it and generate a time trace using the
`-ftime-trace=file.json` option.

See also the RFC:
https://discourse.llvm.org/t/analyzer-rfc-ftime-trace-time-scopes-for-steps-and-entry-points/84343

--
CPP-6065



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list