aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
-rw-r--r--llvm/lib/Support/VirtualFileSystem.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp
index 6d756f4..928c0b5 100644
--- a/llvm/lib/Support/VirtualFileSystem.cpp
+++ b/llvm/lib/Support/VirtualFileSystem.cpp
@@ -2945,8 +2945,34 @@ recursive_directory_iterator::increment(std::error_code &EC) {
return *this;
}
+void TracingFileSystem::printImpl(raw_ostream &OS, PrintType Type,
+ unsigned IndentLevel) const {
+ printIndent(OS, IndentLevel);
+ OS << "TracingFileSystem\n";
+ if (Type == PrintType::Summary)
+ return;
+
+ printIndent(OS, IndentLevel);
+ OS << "NumStatusCalls=" << NumStatusCalls << "\n";
+ printIndent(OS, IndentLevel);
+ OS << "NumOpenFileForReadCalls=" << NumOpenFileForReadCalls << "\n";
+ printIndent(OS, IndentLevel);
+ OS << "NumDirBeginCalls=" << NumDirBeginCalls << "\n";
+ printIndent(OS, IndentLevel);
+ OS << "NumGetRealPathCalls=" << NumGetRealPathCalls << "\n";
+ printIndent(OS, IndentLevel);
+ OS << "NumExistsCalls=" << NumExistsCalls << "\n";
+ printIndent(OS, IndentLevel);
+ OS << "NumIsLocalCalls=" << NumIsLocalCalls << "\n";
+
+ if (Type == PrintType::Contents)
+ Type = PrintType::Summary;
+ getUnderlyingFS().print(OS, Type, IndentLevel + 1);
+}
+
const char FileSystem::ID = 0;
const char OverlayFileSystem::ID = 0;
const char ProxyFileSystem::ID = 0;
const char InMemoryFileSystem::ID = 0;
const char RedirectingFileSystem::ID = 0;
+const char TracingFileSystem::ID = 0;