LLVM: llvm::vfs::TracingFileSystem Class Reference (original) (raw)

File system that tracks the number of calls to the underlying file system. More...

#include "[llvm/Support/VirtualFileSystem.h](VirtualFileSystem%5F8h%5Fsource.html)"

Public Member Functions
TracingFileSystem (llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > FS)
ErrorOr< Status > status (const Twine &Path) override
ErrorOr< std::unique_ptr< File > > openFileForRead (const Twine &Path) override
directory_iterator dir_begin (const Twine &Dir, std::error_code &EC) override
std::error_code getRealPath (const Twine &Path, SmallVectorImpl< char > &Output) override
bool exists (const Twine &Path) override
std::error_code isLocal (const Twine &Path, bool &Result) override
Public Member Functions inherited from llvm::RTTIExtends< TracingFileSystem, ProxyFileSystem >
const void * dynamicClassID () const override
bool isA () const
Check whether this instance is a subclass of QueryT.
Public Attributes
std::size_t NumStatusCalls = 0
std::size_t NumOpenFileForReadCalls = 0
std::size_t NumDirBeginCalls = 0
std::size_t NumGetRealPathCalls = 0
std::size_t NumExistsCalls = 0
std::size_t NumIsLocalCalls = 0
Static Public Attributes
static const char ID = 0

File system that tracks the number of calls to the underlying file system.

This is particularly useful when wrapped around RealFileSystem to add lightweight tracking of expensive syscalls.

Definition at line 1157 of file VirtualFileSystem.h.

dir_begin()

exists()

bool llvm::vfs::TracingFileSystem::exists ( const Twine & Path) inlineoverride

getRealPath()

isLocal()

std::error_code llvm::vfs::TracingFileSystem::isLocal ( const Twine & Path, bool & Result ) inlineoverride

openFileForRead()

ErrorOr< std::unique_ptr< File > > llvm::vfs::TracingFileSystem::openFileForRead ( const Twine & Path) inlineoverride

printImpl()

void TracingFileSystem::printImpl ( raw_ostream & OS, PrintType Type, unsigned IndentLevel ) const overrideprotected

status()

ID

NumDirBeginCalls

std::size_t llvm::vfs::TracingFileSystem::NumDirBeginCalls = 0

NumExistsCalls

std::size_t llvm::vfs::TracingFileSystem::NumExistsCalls = 0

NumGetRealPathCalls

std::size_t llvm::vfs::TracingFileSystem::NumGetRealPathCalls = 0

NumIsLocalCalls

std::size_t llvm::vfs::TracingFileSystem::NumIsLocalCalls = 0

NumOpenFileForReadCalls

std::size_t llvm::vfs::TracingFileSystem::NumOpenFileForReadCalls = 0

NumStatusCalls

std::size_t llvm::vfs::TracingFileSystem::NumStatusCalls = 0


The documentation for this class was generated from the following files: