CallLongMethod implementation added
[cacao.git] / statistics.h
1 /* statistics.h - exports global varables for statistics
2
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,
7    J. Wenninger
8
9    This file is part of CACAO.
10
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.
15
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.
20
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
24    02111-1307, USA.
25
26    Contact: cacao@complang.tuwien.ac.at
27
28    Authors: Christian Thalinger
29
30    $Id: statistics.h 1224 2004-06-30 19:13:37Z twisti $
31
32 */
33
34
35 #ifndef _STATISTICS_H
36 #define _STATISTICS_H
37
38
39 #include "global.h"
40
41
42 /* global variables */
43
44 extern s8 loadingtime;
45 extern s8 compilingtime;                /* accumulated compile time           */
46
47 extern int count_class_infos;           /* variables for measurements         */
48 extern int count_const_pool_len;
49 extern int count_vftbl_len;
50 extern int count_all_methods;
51 extern int count_vmcode_len;
52 extern int count_extable_len;
53 extern int count_class_loads;
54 extern int count_class_inits;
55
56 extern int count_utf_len;               /* size of utf hash                   */
57 extern int count_utf_new;
58 extern int count_utf_new_found;
59
60 extern int count_jit_calls;
61 extern int count_methods;
62 extern int count_spills;
63 extern int count_pcmd_activ;
64 extern int count_pcmd_drop;
65 extern int count_pcmd_zero;
66 extern int count_pcmd_const_store;
67 extern int count_pcmd_const_alu;
68 extern int count_pcmd_const_bra;
69 extern int count_pcmd_load;
70 extern int count_pcmd_move;
71 extern int count_load_instruction;
72 extern int count_pcmd_store;
73 extern int count_pcmd_store_comb;
74 extern int count_dup_instruction;
75 extern int count_pcmd_op;
76 extern int count_pcmd_mem;
77 extern int count_pcmd_met;
78 extern int count_pcmd_bra;
79 extern int count_pcmd_table;
80 extern int count_pcmd_return;
81 extern int count_pcmd_returnx;
82 extern int count_check_null;
83 extern int count_check_bound;
84 extern int count_max_basic_blocks;
85 extern int count_basic_blocks;
86 extern int count_max_javainstr;
87 extern int count_javainstr;
88 extern int count_javacodesize;
89 extern int count_javaexcsize;
90 extern int count_calls;
91 extern int count_tryblocks;
92 extern int count_code_len;
93 extern int count_data_len;
94 extern int count_cstub_len;
95 extern int count_nstub_len;
96 extern int count_max_new_stack;
97 extern int count_upper_bound_new_stack;
98 extern int *count_block_stack;
99 extern int *count_analyse_iterations;
100 extern int *count_method_bb_distribution;
101 extern int *count_block_size_distribution;
102 extern int *count_store_length;
103 extern int *count_store_depth;
104
105
106 /* function prototypes */
107
108 s8 getcputime();
109 void print_times();
110 void print_stats();
111
112 #endif /* _STATISTICS_H */
113
114
115 /*
116  * These are local overrides for various environment variables in Emacs.
117  * Please do not remove this and leave it at the end of the file, where
118  * Emacs will automagically detect them.
119  * ---------------------------------------------------------------------
120  * Local variables:
121  * mode: c
122  * indent-tabs-mode: t
123  * c-basic-offset: 4
124  * tab-width: 4
125  * End:
126  */