* don't include "md.h", not needed
[cacao.git] / src / vm / statistics.h
index 4304f442262a6c12156f2ea98f763e289b7844e4..2575fb822c2e9691940056e3ea0d7e69e53ca40d 100644 (file)
@@ -1,4 +1,4 @@
-/* vm/statistics.h - exports global varables for statistics
+/* src/vm/statistics.h - exports global varables for statistics
 
    Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
    R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
@@ -26,7 +26,7 @@
 
    Authors: Christian Thalinger
 
-   $Id: statistics.h 1971 2005-03-01 20:06:36Z carolyn $
+   $Id: statistics.h 2424 2005-04-30 13:45:06Z jowenn $
 
 */
 
@@ -72,6 +72,8 @@ extern s4 globaluseddumpsize;
 
 extern int count_class_infos;           /* variables for measurements         */
 extern int count_const_pool_len;
+extern int count_classref_len;
+extern int count_parsed_desc_len;
 extern int count_vftbl_len;
 extern int count_all_methods;
 extern int count_methods_marked_used;  /*RTA*/
@@ -95,6 +97,10 @@ extern int count_interface_size;
 extern int count_argument_mem_ss;
 extern int count_argument_reg_ss;
 extern int count_method_in_register;
+extern int count_mov_reg_reg;
+extern int count_mov_mem_reg;
+extern int count_mov_reg_mem;
+extern int count_mov_mem_mem;
 
 extern int count_jit_calls;
 extern int count_methods;
@@ -155,8 +161,13 @@ extern int count_in_maxMethods;
 
 extern u2 count_in_not   [512];
 
+/* instruction scheduler statistics *******************************************/
 
-
+extern s4 count_schedule_basic_blocks;
+extern s4 count_schedule_nodes;
+extern s4 count_schedule_leaders;
+extern s4 count_schedule_max_leaders;
+extern s4 count_schedule_critical_path;
 
 
 /* function prototypes ********************************************************/
@@ -172,6 +183,25 @@ void print_times();
 void print_stats();
 
 void mem_usagelog(bool givewarnings);
+
+
+void nativeinvokation();
+void compiledinvokation();
+void jnicallXmethodnvokation();
+void jniinvokation();
+
+
+#if defined(STATISTICS)
+#define STATS(x) \
+       { \
+               if (opt_stat) \
+                       x \
+       }
+#else
+#define STATS(x)
+#endif
+
+
  
 #endif /* _STATISTICS_H */