[all-commits] [llvm/llvm-project] 96f16a: [LinkerWrapper] Add support for timescope tracing

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jul 13 12:38:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96f16a6867f78e42e67807cbd357546a95b2a9b6
      https://github.com/llvm/llvm-project/commit/96f16a6867f78e42e67807cbd357546a95b2a9b6
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M clang/tools/clang-linker-wrapper/LinkerWrapperOpts.td

  Log Message:
  -----------
  [LinkerWrapper] Add support for timescope tracing


  Commit: c70db40ceb65ef5ad4549a0ad4665ed88a5e2224
      https://github.com/llvm/llvm-project/commit/c70db40ceb65ef5ad4549a0ad4665ed88a5e2224
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
    M clang/tools/clang-linker-wrapper/LinkerWrapperOpts.td

  Log Message:
  -----------
  [LinkerWrapper] Support time tracing in the linker wrapper

Summary:
This patch adds the new `--wrapper-time-trace=` option to write a time
tracing JSON file indicating where time was spent in the linker wrapper.
We also reformat and group some of the existing code to make
constraining the scope easier for time tracing.  We use the `--wrapper`
prefix to set this apart from the time tracing that lld may use.


Compare: https://github.com/llvm/llvm-project/compare/a61b202d4e3b...c70db40ceb65


More information about the All-commits mailing list