1 /* statistics.h - exports global varables for statistics
3 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
4 Institut f. Computersprachen, TU Wien
5 R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser, M. Probst,
6 S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich,
9 This file is part of CACAO.
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License as
13 published by the Free Software Foundation; either version 2, or (at
14 your option) any later version.
16 This program is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 Contact: cacao@complang.tuwien.ac.at
28 Authors: Christian Thalinger
30 $Id: statistics.h 1438 2004-11-05 09:52:49Z twisti $
42 /* global variables */
44 extern s4 memoryusage;
45 extern s4 maxmemusage;
46 extern s4 maxdumpsize;
48 extern s4 globalallocateddumpsize;
49 extern s4 globaluseddumpsize;
51 extern int count_class_infos; /* variables for measurements */
52 extern int count_const_pool_len;
53 extern int count_vftbl_len;
54 extern int count_all_methods;
55 extern int count_methods_marked_used; /*RTA*/
56 extern int count_vmcode_len;
57 extern int count_extable_len;
58 extern int count_class_loads;
59 extern int count_class_inits;
61 extern int count_utf_len; /* size of utf hash */
62 extern int count_utf_new;
63 extern int count_utf_new_found;
65 extern int count_jit_calls;
66 extern int count_methods;
67 extern int count_spills;
68 extern int count_pcmd_activ;
69 extern int count_pcmd_drop;
70 extern int count_pcmd_zero;
71 extern int count_pcmd_const_store;
72 extern int count_pcmd_const_alu;
73 extern int count_pcmd_const_bra;
74 extern int count_pcmd_load;
75 extern int count_pcmd_move;
76 extern int count_load_instruction;
77 extern int count_pcmd_store;
78 extern int count_pcmd_store_comb;
79 extern int count_dup_instruction;
80 extern int count_pcmd_op;
81 extern int count_pcmd_mem;
82 extern int count_pcmd_met;
83 extern int count_pcmd_bra;
84 extern int count_pcmd_table;
85 extern int count_pcmd_return;
86 extern int count_pcmd_returnx;
87 extern int count_check_null;
88 extern int count_check_bound;
89 extern int count_max_basic_blocks;
90 extern int count_basic_blocks;
91 extern int count_max_javainstr;
92 extern int count_javainstr;
93 extern int count_javacodesize;
94 extern int count_javaexcsize;
95 extern int count_calls;
96 extern int count_tryblocks;
97 extern int count_code_len;
98 extern int count_data_len;
99 extern int count_cstub_len;
100 extern int count_nstub_len;
101 extern int count_max_new_stack;
102 extern int count_upper_bound_new_stack;
103 extern int *count_block_stack;
104 extern int *count_analyse_iterations;
105 extern int *count_method_bb_distribution;
106 extern int *count_block_size_distribution;
107 extern int *count_store_length;
108 extern int *count_store_depth;
111 /* function prototypes */
115 void loadingtime_start();
116 void loadingtime_stop();
117 void compilingtime_start();
118 void compilingtime_stop();
123 void mem_usagelog(bool givewarnings);
125 #endif /* _STATISTICS_H */
129 * These are local overrides for various environment variables in Emacs.
130 * Please do not remove this and leave it at the end of the file, where
131 * Emacs will automagically detect them.
132 * ---------------------------------------------------------------------
135 * indent-tabs-mode: t