[all-commits] [llvm/llvm-project] e766e3: [clang][deps] Print timing information
Jan Svoboda via All-commits
all-commits at lists.llvm.org
Thu Apr 20 11:18:46 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e766e3afedeba90dfbd0513a675a9bf32c5cc8e9
https://github.com/llvm/llvm-project/commit/e766e3afedeba90dfbd0513a675a9bf32c5cc8e9
Author: Jan Svoboda <jan_svoboda at apple.com>
Date: 2023-04-20 (Thu, 20 Apr 2023)
Changed paths:
A clang/test/ClangScanDeps/print-timing.c
M clang/tools/clang-scan-deps/ClangScanDeps.cpp
M clang/tools/clang-scan-deps/Opts.td
Log Message:
-----------
[clang][deps] Print timing information
This patch adds new `-print-timing` option to `clang-scan-deps`. It measures the wall and process time taken to scan dependencies for the compilation database. This provides more representative data compared to measuring the timing for the whole tool invocation, since that includes parsing and generating JSON files, which can be significant for larger inputs.
Reviewed By: akyrtzi
Differential Revision: https://reviews.llvm.org/D147815
More information about the All-commits
mailing list