projects
/
cacao.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* src/vm/jit/codegen-common.cpp (codegen_emit): New generic version of the
[cacao.git]
/
src
/
vm
/
jit
/
optimizing
/
profile.c
diff --git
a/src/vm/jit/optimizing/profile.c
b/src/vm/jit/optimizing/profile.c
index dfffb133fa079c51b488532aebd8cbbb16bb4fd4..5268c8d75db6ab52a9f728ddef26b8b0e79c0672 100644
(file)
--- a/
src/vm/jit/optimizing/profile.c
+++ b/
src/vm/jit/optimizing/profile.c
@@
-30,15
+30,15
@@
#include "vm/types.h"
#include "vm/types.h"
-#include "mm/memory.h"
+#include "mm/memory.h
pp
"
#include "threads/threadlist.hpp"
#include "threads/thread.hpp"
#include "vm/jit/builtin.hpp"
#include "vm/class.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.h
pp
"
+#include "vm/method.h
pp
"
#include "vm/options.h"
#include "vm/string.hpp"
#include "vm/options.h"
#include "vm/string.hpp"
@@
-95,6
+95,7
@@
static void profile_thread(void)
// Lock the thread lists.
ThreadList_lock();
// Lock the thread lists.
ThreadList_lock();
+#if 0
/* iterate over all started threads */
for (t = ThreadList_first(); t != NULL; t = ThreadList_next(t)) {
/* 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();
// Unlock the thread lists.
ThreadList_unlock();
@@
-207,6
+209,7
@@
void profile_printstats(void)
frequency = 0;
cycles = 0;
frequency = 0;
cycles = 0;
+#if 0
/* create new method list */
// TODO Use a sorted container.
List* l = List_new();
/* 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]);
}
}
j, code->bbfrequency[j]);
}
}
+#endif
printf("----------- -------------- \n");
printf("%10d %12ld\n", frequency, (long) cycles);
printf("----------- -------------- \n");
printf("%10d %12ld\n", frequency, (long) cycles);