00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <Basics.H>
00024 #include "StatNames.H"
00025
00026 static char *AttrName0[] = {
00027
00028 "MultiPKFile size (in bytes)",
00029
00030
00031 "PKFile size (in bytes)",
00032 "Number of free variables per PKFile",
00033 "Free variable name length",
00034 "Number of cache entries per PKFile",
00035 "Number of common free variables per PKFile",
00036 "Percentage of common free variables per PKFile",
00037
00038
00039 "Number of total free variables per cache entry",
00040 "Number of uncommon free variables per cache entry",
00041 "Percentage of uncommon free variables per cache entry",
00042 "Cache value size (in bytes)",
00043 "Number of derived indices (DI's) per cache value",
00044 "Number of child entries (kids) per cache entry",
00045 "Number of entries in name index map per cache entry",
00046 "Number of non-empty name index maps per cache entry (0 or 1)",
00047 "Size of the cached value's PrefixTbl",
00048 "Number of redundant free variables per cache entry",
00049 "Percentage redundant free variables per cache entry"
00050 };
00051
00052 char *Stat::AttrName(Stat::Attribute attr) throw ()
00053 {
00054 assert(0 <= attr && attr < Stat::NumAttributes);
00055 return AttrName0[(int)attr];
00056 }
00057
00058 static const int DirLevel = 4;
00059
00060 static char *LevelName0[] = {
00061 "Cache entries",
00062 "Common finger print (CFP) groups",
00063 "PKFiles",
00064 "MultiPKFiles",
00065 "Directories"
00066 };
00067
00068 char *Stat::LevelName(int level) throw ()
00069 {
00070 assert(0 <= level);
00071 return LevelName0[min(level, DirLevel)];
00072 }