* Small cosmetic changes.
authortwisti <none@none>
Thu, 22 Dec 2005 14:05:38 +0000 (14:05 +0000)
committertwisti <none@none>
Thu, 22 Dec 2005 14:05:38 +0000 (14:05 +0000)
src/vm/statistics.c

index 924bfcd8a3c12af55bb67ee5b181d6f05f4c42bd..8f083c9e1f18ac1200a740999cbf839f9bb105c8 100644 (file)
 
    Authors: Christian Thalinger
 
-   $Id: statistics.c 3514 2005-10-28 11:34:23Z twisti $
+   Changes:
+
+   $Id: statistics.c 4001 2005-12-22 14:05:38Z twisti $
 
 */
 
 
+#include "config.h"
+
 #include <string.h> 
 #include <sys/time.h>
 #include <sys/resource.h>
 
+#include "vm/types.h"
+
 #include "toolbox/logging.h"
 #include "vm/global.h"
 #include "vm/options.h"
 #include "vm/statistics.h"
 
 
-/* global variables */
+/* global variables ***********************************************************/
 
 static s8 loadingtime = 0;              /* accumulated loading time           */
 static s8 loadingstarttime = 0;
@@ -207,24 +213,28 @@ s4 count_schedule_max_leaders = 0;
 s4 count_schedule_critical_path = 0;
 
 
-
 /* nativeinvokation ***********************************************************
 
    increments the native invokation count by one
        
 *******************************************************************************/
-void nativeinvokation() {
-       /*do locking here */
+
+void nativeinvokation(void)
+{
+       /* XXX do locking here */
        count_native_function_calls++;
 }
 
+
 /* compiledinvokation *********************************************************
 
    increments the compiled invokation count by one
        
 *******************************************************************************/
-void compiledinvokation() {
-       /* do locking here*/
+
+void compiledinvokation(void)
+{
+       /* XXX do locking here */
        count_compiled_function_calls++;
 }
 
@@ -234,18 +244,23 @@ void compiledinvokation() {
    increments the jni CallXMethod invokation count by one
        
 *******************************************************************************/
-void jnicallXmethodnvokation() {
-       /*do locking here */
+
+void jnicallXmethodnvokation(void)
+{
+       /* XXX do locking here */
        count_jni_callXmethod_calls++;
 }
 
+
 /* jniinvokation *************************************************************
 
    increments the jni overall  invokation count by one
        
 *******************************************************************************/
-void jniinvokation() {
-       /*do locking here */
+
+void jniinvokation(void)
+{
+       /* XXX do locking here */
        count_jni_calls++;
 }