Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

RecursiveStats Class Reference

List of all members.

Public Member Functions

 RecursiveStats ()
void report (ostream &out, const char *indent)
void resetCounters ()
void resetAll ()
void visit (const Text &path, const Text &host, const Text &port)
void visit (const Text &path, VestaSource *vs)
void visitFile (VestaSource *parentVS, unsigned int index, ShortId fileSid)
void visitDir (VestaSource *dirVS)
void visitImports (const Text &modelname, const Text &host, const Text &port)
bool empty ()

Private Attributes

VisitedShortidTable visitedFiles
VisitedShortidTable visitedDirs
Basics::uint64 totalFiles
Basics::uint64 uniqueFiles
Basics::uint64 uniqueFileBytes
Basics::uint64 uniqueDirs
Basics::uint64 uniqueDirBytes
Basics::uint64 uniqueDirUsedBytes

Constructor & Destructor Documentation

RecursiveStats::RecursiveStats  )  [inline]
 

Definition at line 94 of file vmeasure.C.


Member Function Documentation

bool RecursiveStats::empty  )  [inline]
 

Definition at line 150 of file vmeasure.C.

References Table< K, V >::Default::Size(), visitedDirs, and visitedFiles.

Referenced by process().

void RecursiveStats::report ostream &  out,
const char *  indent
[inline]
 

Definition at line 100 of file vmeasure.C.

References Basics::FormatUnitVal(), totalFiles, uniqueDirs, uniqueDirUsedBytes, uniqueFileBytes, and uniqueFiles.

Referenced by main(), and process().

void RecursiveStats::resetAll  )  [inline]
 

Definition at line 124 of file vmeasure.C.

References Table< K, V >::Default::Delete(), Table< K, V >::Iterator::Next(), resetCounters(), visitedDirs, and visitedFiles.

Referenced by process().

void RecursiveStats::resetCounters  )  [inline]
 

Definition at line 114 of file vmeasure.C.

References totalFiles, uniqueDirBytes, uniqueDirs, uniqueDirUsedBytes, uniqueFileBytes, and uniqueFiles.

Referenced by process(), and resetAll().

void RecursiveStats::visit const Text path,
VestaSource vs
 

Definition at line 390 of file vmeasure.C.

References VestaSource::host(), VestaSource::immutableDirectory, VestaSource::immutableFile, LongId::isAncestorOf(), Text::Length(), VestaSource::longid, VestaSource::mutableDirectory, VestaSource::mutableFile, MutableRootLongId, VestaSource::port(), RootLongId, Text::Sub(), VestaSource::type, upToVersion(), upToWorkingDir(), visitDir(), and visitImports().

void RecursiveStats::visit const Text path,
const Text host,
const Text port
 

Definition at line 419 of file vmeasure.C.

References ReposUI::filenameToVS().

Referenced by process(), and visitImports().

void RecursiveStats::visitDir VestaSource dirVS  ) 
 

Definition at line 327 of file vmeasure.C.

References visitDirEntriesClosure::dirVS, ReposUI::errorCodeText(), Table< K, V >::Default::Get(), VestaSource::list(), VestaSource::measureDirectory(), VRErrorCode::ok, Table< K, V >::Default::Put(), VestaSource::shortId(), visitDirEntriesClosure::stats, VestaSource::directoryStats::totalEntrySize, uniqueDirBytes, uniqueDirs, uniqueDirUsedBytes, VestaSource::directoryStats::usedEntrySize, visitDirEntriesCallback(), visitedDirs, and ReposUI::vsToFilename().

Referenced by visit(), and visitDirEntriesCallback().

void RecursiveStats::visitFile VestaSource parentVS,
unsigned int  index,
ShortId  fileSid
 

Definition at line 299 of file vmeasure.C.

References ReposUI::errorCodeText(), Table< K, V >::Default::Get(), VestaSource::lookupIndex(), VRErrorCode::ok, Table< K, V >::Default::Put(), VestaSource::size(), totalFiles, uniqueFileBytes, uniqueFiles, visitedFiles, and ReposUI::vsToFilename().

Referenced by visitDirEntriesCallback().

void RecursiveStats::visitImports const Text modelname,
const Text host,
const Text port
 

Definition at line 366 of file vmeasure.C.

References VDirSurrogate::LongIdLookup(), ParseImports::P(), Import::path, Sequence< Elem, elem_ptrfree >::remlo(), RootLongId, Sequence< Elem, elem_ptrfree >::size(), and visit().

Referenced by visit().


Member Data Documentation

Basics::uint64 RecursiveStats::totalFiles [private]
 

Definition at line 67 of file vmeasure.C.

Referenced by report(), resetCounters(), and visitFile().

Basics::uint64 RecursiveStats::uniqueDirBytes [private]
 

Definition at line 84 of file vmeasure.C.

Referenced by resetCounters(), and visitDir().

Basics::uint64 RecursiveStats::uniqueDirs [private]
 

Definition at line 79 of file vmeasure.C.

Referenced by report(), resetCounters(), and visitDir().

Basics::uint64 RecursiveStats::uniqueDirUsedBytes [private]
 

Definition at line 91 of file vmeasure.C.

Referenced by report(), resetCounters(), and visitDir().

Basics::uint64 RecursiveStats::uniqueFileBytes [private]
 

Definition at line 74 of file vmeasure.C.

Referenced by report(), resetCounters(), and visitFile().

Basics::uint64 RecursiveStats::uniqueFiles [private]
 

Definition at line 71 of file vmeasure.C.

Referenced by report(), resetCounters(), and visitFile().

VisitedShortidTable RecursiveStats::visitedDirs [private]
 

Definition at line 63 of file vmeasure.C.

Referenced by empty(), resetAll(), and visitDir().

VisitedShortidTable RecursiveStats::visitedFiles [private]
 

Definition at line 63 of file vmeasure.C.

Referenced by empty(), resetAll(), and visitFile().


The documentation for this class was generated from the following file:
Generated on Mon May 8 00:49:12 2006 for Vesta by  doxygen 1.4.2