[clang] [clang][deps] Print tracing VFS data (PR #108056)
Steven Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 10 10:20:58 PDT 2024
================
@@ -1024,6 +1042,16 @@ int clang_scan_deps_main(int argc, char **argv, const llvm::ToolContext &) {
Pool.wait();
}
+ if (Verbose) {
+ llvm::errs() << "\n*** Virtual File System Stats:\n"
+ << NumStatusCalls << " status() calls\n"
+ << NumOpenFileForReadCalls << " openFileForRead() calls\n"
+ << NumDirBeginCalls << " dir_begin() calls\n"
+ << NumGetRealPathCalls << " getRealPath() calls\n"
+ << NumExistsCalls << " exists() calls\n"
+ << NumIsLocalCalls << " isLocal() calls\n";
+ }
+
----------------
cachemeifyoucan wrote:
Print after the `stopTimer()`?
https://github.com/llvm/llvm-project/pull/108056
More information about the cfe-commits
mailing list