[PATCH] D147815: [clang][deps] Print timing information
Argyrios Kyrtzidis via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 7 15:17:30 PDT 2023
akyrtzi added a comment.
Could you also add a `-terse` option, to avoid printing the full dependency info, if you mainly want to get the timing? Something like this:
T.stopTimer();
if (PrintTiming)
llvm::errs() << llvm::format(
"clang-scan-deps timing: %0.2fs wall, %0.2fs process\n",
T.getTotalTime().getWallTime(), T.getTotalTime().getProcessTime());
if (Terse) {
if (Format == ScanningOutputFormat::Full ||
Format == ScanningOutputFormat::FullTree ||
Format == ScanningOutputFormat::FullIncludeTree) {
llvm::errs() << "num modules: " << FD->getNumModules() << '\n';
}
return HadErrors;
}
Where `getNumModules()` is
size_t getNumModules() const {
return Modules.size();
}
So you still get some very high-level info but not the whole dump of info.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147815/new/
https://reviews.llvm.org/D147815
More information about the cfe-commits
mailing list