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

StatNames.C

Go to the documentation of this file.
00001 // Copyright (C) 2001, Compaq Computer Corporation
00002 // 
00003 // This file is part of Vesta.
00004 // 
00005 // Vesta is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 // 
00010 // Vesta is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 // 
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with Vesta; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 // Last modified on Mon Nov 10 16:47:33 EST 2003 by ken@xorian.net  
00020 //      modified on Mon Feb 14 18:22:27 PST 2000 by mann  
00021 //      modified on Sat Oct  4 08:02:16 PDT 1997 by heydon
00022 
00023 #include <Basics.H>
00024 #include "StatNames.H"
00025 
00026 static char *AttrName0[] = {
00027     // MultiPKFile attributes
00028     "MultiPKFile size (in bytes)",
00029 
00030     // PKFile attributes
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     // Cache entry attributes
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 }

Generated on Mon May 8 00:48:36 2006 for Vesta by  doxygen 1.4.2