00001 /* 00002 00003 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00004 00005 This program is free software; you can redistribute it and/or modify it 00006 under the terms of version 2 of the GNU General Public License as 00007 published by the Free Software Foundation. 00008 00009 This program is distributed in the hope that it would be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 00013 Further, this software is distributed without any warranty that it is 00014 free of the rightful claim of any third person regarding infringement 00015 or the like. Any license provided herein, whether implied or 00016 otherwise, applies only to this software file. Patent licenses, if 00017 any, provided herein do not apply to combinations of this program with 00018 other software, or any other product whatsoever. 00019 00020 You should have received a copy of the GNU General Public License along 00021 with this program; if not, write the Free Software Foundation, Inc., 59 00022 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00023 00024 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00025 Mountain View, CA 94043, or: 00026 00027 http://www.sgi.com 00028 00029 For further information regarding this notice, see: 00030 00031 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00032 00033 */ 00034 00035 00036 /* ==================================================================== 00037 * ==================================================================== 00038 * 00039 * Module: cwh_stats.h 00040 * $Revision$ 00041 * $Date$ 00042 * $Author$ 00043 * $Source$ 00044 * 00045 * Revision history: 00046 * dd-mmm-95 - Original Version 00047 * 00048 * Description: prototypes for entry points into cwh_stats.c - the 00049 * counter functions & printing. 00050 * 00051 * ==================================================================== 00052 * ==================================================================== 00053 */ 00054 00055 #ifndef CWH_STATS_INCLUDED 00056 #define CWH_STATS_INCLUDED 00057 00058 #ifdef _KEEP_RCS_ID 00059 static char *rcs_id = "$Source$ $Revision$"; 00060 #endif /* _KEEP_RCS_ID */ 00061 00062 /* 00063 * counter defines for types - measure number of times New_TY is called 00064 * mostly, though other actions are counted too. 00065 * 00066 * Note c_POINTER and c_F90_NOPTR require Make_Pointer_Type 00067 * in stab_util.c to be modified... ie: add 00068 * 00069 * BUMP_TY_COUNTER(c_POINTER); 00070 * at New_TY() 00071 * 00072 * and 00073 * 00074 * if (!TY_is_f90_pointer(t)) { 00075 * .... 00076 * } else 00077 * BUMP_TY_COUNTER(c_F90_NOPTR); 00078 */ 00079 00080 00081 enum type_counter { 00082 c_TY_ARRAY = 0, 00083 c_TY_POINTER = 1, 00084 c_TY_f90_POINTER = 2, 00085 c_TY_PROC = 3 , 00086 c_TY_MISC = 4, 00087 c_TY_STRUCT = 5, 00088 c_TY_COPY = 6, 00089 c_TY_UNIQ_POINTER = 7, 00090 c_TY_DTYPE = 8, 00091 c_TY_MATCH_ARRAY = 9, 00092 c_TY_MATCH_DOPE = 10, 00093 c_TY_MATCH = 11, 00094 c_TY_CLEARED = 12, 00095 c_TY_REUSED = 13, 00096 c_TY_F90_NOPTR = 14, 00097 c_TY_LAST = 15 00098 }; 00099 00100 extern int cwh_stat_ty_c[c_TY_LAST]; 00101 00102 00103 #ifdef _DEBUG 00104 #define BUMP_TY_COUNTER(i) cwh_stat_ty_c[i] ++ ; 00105 #else 00106 #define BUMP_TY_COUNTER(i) 00107 #endif 00108 00109 00110 00111 #endif /* CWH_STATS_INCLUDED */
1.5.6