[all-commits] [llvm/llvm-project] a845ae: [Driver] Allow to collect `-save-stats` data to a ...

Volodymyr Sapsai via All-commits all-commits at lists.llvm.org
Thu Mar 16 11:58:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a845aeb5d6c869146fa24194a7d0182a4787cad8
      https://github.com/llvm/llvm-project/commit/a845aeb5d6c869146fa24194a7d0182a4787cad8
  Author: Volodymyr Sapsai <vsapsai at apple.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M clang/docs/CommandGuide/clang.rst
    M clang/include/clang/Driver/Driver.h
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Frontend/FrontendOptions.h
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/lib/Frontend/CompilerInstance.cpp
    M clang/test/Driver/save-stats.c
    M clang/tools/driver/driver.cpp

  Log Message:
  -----------
  [Driver] Allow to collect `-save-stats` data to a file specified in the environment variable.

Using two environment variables `CC_PRINT_INTERNAL_STAT` and
`CC_PRINT_INTERNAL_STAT_FILE` to work like `CC_PRINT_PROC_STAT`.

The purpose of the change is to allow collecting the internal stats
without modifying the build scripts. Write all stats to a single file
to simplify aggregating the data.

Differential Revision: https://reviews.llvm.org/D144981




More information about the All-commits mailing list