* src/vm/jit/codegen-common.cpp (codegen_emit): New generic version of the
[cacao.git] / src / vm / jit / optimizing / profile.c
index dfffb133fa079c51b488532aebd8cbbb16bb4fd4..5268c8d75db6ab52a9f728ddef26b8b0e79c0672 100644 (file)
 
 #include "vm/types.h"
 
-#include "mm/memory.h"
+#include "mm/memory.hpp"
 
 #include "threads/threadlist.hpp"
 #include "threads/thread.hpp"
 
 #include "vm/jit/builtin.hpp"
 #include "vm/class.hpp"
-#include "vm/classcache.h"
-#include "vm/method.h"
+#include "vm/classcache.hpp"
+#include "vm/method.hpp"
 #include "vm/options.h"
 #include "vm/string.hpp"
 
@@ -95,6 +95,7 @@ static void profile_thread(void)
                // Lock the thread lists.
                ThreadList_lock();
 
+#if 0
                /* iterate over all started threads */
 
                for (t = ThreadList_first(); t != NULL; t = ThreadList_next(t)) {
@@ -153,6 +154,7 @@ static void profile_thread(void)
                                }
                        }
                }
+#endif
 
                // Unlock the thread lists.
                ThreadList_unlock();
@@ -207,6 +209,7 @@ void profile_printstats(void)
        frequency = 0;
        cycles    = 0;
 
+#if 0
        /* create new method list */
        // TODO Use a sorted container.
        List* l = List_new();
@@ -297,6 +300,7 @@ void profile_printstats(void)
                                           j, code->bbfrequency[j]);
                }
        }
+#endif
 
        printf("-----------           -------------- \n");
        printf("%10d             %12ld\n", frequency, (long) cycles);