add NewGlobalRef to cacao jni
[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 1416 2004-10-19 12:07:18Z carolyn $
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 int count_class_infos;           /* variables for measurements         */
45 extern int count_const_pool_len;
46 extern int count_vftbl_len;
47 extern int count_all_methods;
48 extern int count_methods_marked_used;  /*RTA*/
49 extern int count_vmcode_len;
50 extern int count_extable_len;
51 extern int count_class_loads;
52 extern int count_class_inits;
53
54 extern int count_utf_len;               /* size of utf hash                   */
55 extern int count_utf_new;
56 extern int count_utf_new_found;
57
58 extern int count_jit_calls;
59 extern int count_methods;
60 extern int count_spills;
61 extern int count_pcmd_activ;
62 extern int count_pcmd_drop;
63 extern int count_pcmd_zero;
64 extern int count_pcmd_const_store;
65 extern int count_pcmd_const_alu;
66 extern int count_pcmd_const_bra;
67 extern int count_pcmd_load;
68 extern int count_pcmd_move;
69 extern int count_load_instruction;
70 extern int count_pcmd_store;
71 extern int count_pcmd_store_comb;
72 extern int count_dup_instruction;
73 extern int count_pcmd_op;
74 extern int count_pcmd_mem;
75 extern int count_pcmd_met;
76 extern int count_pcmd_bra;
77 extern int count_pcmd_table;
78 extern int count_pcmd_return;
79 extern int count_pcmd_returnx;
80 extern int count_check_null;
81 extern int count_check_bound;
82 extern int count_max_basic_blocks;
83 extern int count_basic_blocks;
84 extern int count_max_javainstr;
85 extern int count_javainstr;
86 extern int count_javacodesize;
87 extern int count_javaexcsize;
88 extern int count_calls;
89 extern int count_tryblocks;
90 extern int count_code_len;
91 extern int count_data_len;
92 extern int count_cstub_len;
93 extern int count_nstub_len;
94 extern int count_max_new_stack;
95 extern int count_upper_bound_new_stack;
96 extern int *count_block_stack;
97 extern int *count_analyse_iterations;
98 extern int *count_method_bb_distribution;
99 extern int *count_block_size_distribution;
100 extern int *count_store_length;
101 extern int *count_store_depth;
102
103
104 /* function prototypes */
105
106 s8 getcputime();
107
108 void loadingtime_start();
109 void loadingtime_stop();
110 void compilingtime_start();
111 void compilingtime_stop();
112
113 void print_times();
114 void print_stats();
115
116 #endif /* _STATISTICS_H */
117
118
119 /*
120  * These are local overrides for various environment variables in Emacs.
121  * Please do not remove this and leave it at the end of the file, where
122  * Emacs will automagically detect them.
123  * ---------------------------------------------------------------------
124  * Local variables:
125  * mode: c
126  * indent-tabs-mode: t
127  * c-basic-offset: 4
128  * tab-width: 4
129  * End:
130  */