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

vmeasure.C File Reference

#include <Basics.H>
#include <Text.H>
#include <Units.H>
#include <VestaConfig.H>
#include <VestaSource.H>
#include <VDirSurrogate.H>
#include <ReposUI.H>
#include <ParseImports.H>
#include <RemoteModelSpace.H>
#include <ShortIdKey.H>
#include <getopt.h>

Go to the source code of this file.

Typedefs

typedef Table< ShortIdKey,
bool >::Default 
VisitedShortidTable
typedef Table< ShortIdKey,
bool >::Iterator 
VisitedShortidIter

Enumerations

enum  print_what {
  print_recursive_stats, print_recursive_delta_stats, print_recursive_accum_stats, print_raw_all,
  print_raw_base, print_raw_used_count, print_raw_total_count, print_raw_used_size,
  print_raw_total_size
}

Functions

void usage ()
VestaSourceupToVersion (VestaSource *vs)
VestaSourceupToWorkingDir (VestaSource *vs)
bool visitDirEntriesCallback (void *closure, VestaSource::typeTag type, Arc arc, unsigned int index, Bit32 pseudoInode, ShortId fileSid, bool master)
void process (const Text &path, const Text &host, const Text &port, RecursiveStats &stats, print_what output_selection, bool print_path)
int main (int argc, char *argv[])

Variables

Text program_name
Text defpkgpar


Typedef Documentation

typedef Table<ShortIdKey,bool>::Iterator VisitedShortidIter
 

Definition at line 54 of file vmeasure.C.

typedef Table<ShortIdKey,bool>::Default VisitedShortidTable
 

Definition at line 53 of file vmeasure.C.


Enumeration Type Documentation

enum print_what
 

Enumeration values:
print_recursive_stats 
print_recursive_delta_stats 
print_recursive_accum_stats 
print_raw_all 
print_raw_base 
print_raw_used_count 
print_raw_total_count 
print_raw_used_size 
print_raw_total_size 

Definition at line 160 of file vmeasure.C.


Function Documentation

int main int  argc,
char *  argv[]
 

Definition at line 528 of file vmeasure.C.

References VDirSurrogate::defaultHost(), VDirSurrogate::defaultPort(), Text::FindCharR(), VestaConfig::get_Text(), ReposUI::failure::msg, SRPC::failure::msg, VestaConfig::failure::msg, print_raw_all, print_raw_base, print_raw_total_count, print_raw_total_size, print_raw_used_count, print_raw_used_size, print_recursive_accum_stats, print_recursive_delta_stats, print_recursive_stats, process(), SRPC::failure::r, RecursiveStats::report(), Text::Sub(), and usage().

void process const Text path,
const Text host,
const Text port,
RecursiveStats stats,
print_what  output_selection,
bool  print_path
 

Definition at line 426 of file vmeasure.C.

References VestaSource::directoryStats::baseChainLength, ReposUI::canonicalize(), RecursiveStats::empty(), ReposUI::errorCodeText(), ReposUI::filenameToVS(), Basics::FormatUnitVal(), VestaSource::measureDirectory(), VRErrorCode::ok, print_raw_all, print_raw_base, print_raw_total_count, print_raw_total_size, print_raw_used_count, print_raw_used_size, print_recursive_delta_stats, print_recursive_stats, RecursiveStats::report(), RecursiveStats::resetAll(), RecursiveStats::resetCounters(), VestaSource::directoryStats::totalEntryCount, VestaSource::directoryStats::totalEntrySize, VestaSource::directoryStats::usedEntryCount, VestaSource::directoryStats::usedEntrySize, and RecursiveStats::visit().

Referenced by main().

VestaSource* upToVersion VestaSource vs  ) 
 

Definition at line 212 of file vmeasure.C.

References VestaSource::appendableDirectory, VestaSource::getParent(), VestaSource::immutableDirectory, VestaSource::immutableFile, LongId::isAncestorOf(), VestaSource::longid, RootLongId, and VestaSource::type.

Referenced by RecursiveStats::visit().

VestaSource* upToWorkingDir VestaSource vs  ) 
 

Definition at line 237 of file vmeasure.C.

References VestaAttribs::getAttrib(), VestaSource::getParent(), VestaSource::immutableDirectory, VestaSource::immutableFile, LongId::isAncestorOf(), VestaSource::longid, VestaSource::mutableDirectory, VestaSource::mutableFile, MutableRootLongId, and VestaSource::type.

Referenced by RecursiveStats::visit().

void usage  ) 
 

Definition at line 203 of file vmeasure.C.

bool visitDirEntriesCallback void *  closure,
VestaSource::typeTag  type,
Arc  arc,
unsigned int  index,
Bit32  pseudoInode,
ShortId  fileSid,
bool  master
 

Definition at line 263 of file vmeasure.C.

References visitDirEntriesClosure::dirVS, ReposUI::errorCodeText(), VestaSource::immutableDirectory, VestaSource::immutableFile, VestaSource::lookupIndex(), VestaSource::mutableDirectory, VestaSource::mutableFile, VRErrorCode::ok, visitDirEntriesClosure::stats, RecursiveStats::visitDir(), RecursiveStats::visitFile(), and ReposUI::vsToFilename().

Referenced by RecursiveStats::visitDir().


Variable Documentation

Text defpkgpar
 

Definition at line 201 of file vmeasure.C.

Text program_name
 

Definition at line 199 of file vmeasure.C.


Generated on Mon May 8 00:49:05 2006 for Vesta by  doxygen 1.4.2