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

VCacheStats.C File Reference

#include <Basics.H>
#include <CacheArgs.H>
#include <CacheConfig.H>
#include "StatError.H"
#include "StatNames.H"
#include "StatCount.H"
#include "StatCollection.H"
#include "StatDirEntry.H"
#include "StatMPKFile.H"

Go to the source code of this file.

Defines

#define ATTRIB_CASE(name)   if(strcmp(#name, stat) == 0) return &(stats.entryStats[Stat::name])
#define FANOUT_CASE(name, level)   if(strcmp(name, stat)) return stats.getFanout(level);

Functions

void PrintSyntax (const char *msg, const char *arg=NULL) throw ()
void Process (const char *path, int verbose, bool histo, bool minName, bool maxName, Stat::Collection &stats) throw ()
int main (int argc, char *argv[])


Define Documentation

#define ATTRIB_CASE name   )     if(strcmp(#name, stat) == 0) return &(stats.entryStats[Stat::name])
 

#define FANOUT_CASE name,
level   )     if(strcmp(name, stat)) return stats.getFanout(level);
 


Function Documentation

int main int  argc,
char *  argv[]
 

Definition at line 182 of file VCacheStats.C.

References StatCount::AddReportMask(), max(), NEW_CONSTR, PrintSyntax(), Process(), Stat::Collection::redundant, StatCount::SetReportCount(), CacheArgs::StartsWith(), and verbose.

void PrintSyntax const char *  msg,
const char *  arg = NULL
throw ()
 

Definition at line 40 of file VCacheStats.C.

Referenced by main().

void Process const char *  path,
int  verbose,
bool  histo,
bool  minName,
bool  maxName,
Stat::Collection stats
throw ()
 

Definition at line 57 of file VCacheStats.C.

References Stat::AttrName(), Config_SCachePath, Text::Length(), Stat::LevelName(), Stat::NumAttributes, Stat::NumRedundantNames, DirEntry::Open(), Stat::PcntRedundantNames, StatCount::Print(), DirEntry::Search(), and verbose.

Referenced by main().


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