Mercurial > hg > truffle
diff src/share/vm/oops/method.hpp @ 8611:6c4db417385a
added API to reset the profiling information for a method
added some test cases that check the recorded profiling information
author | Christian Haeubl <haeubl@ssw.jku.at> |
---|---|
date | Wed, 27 Mar 2013 17:25:59 +0100 |
parents | b8f261ba79c6 |
children | b9a918201d47 |
line wrap: on
line diff
--- a/src/share/vm/oops/method.hpp Wed Mar 27 10:36:57 2013 +0100 +++ b/src/share/vm/oops/method.hpp Wed Mar 27 17:25:59 2013 +0100 @@ -370,6 +370,8 @@ void set_graal_priority(int prio) { _graal_priority = prio; } int graal_priority() { return _graal_priority; } + + void reset_counters(); #endif // GRAAL bool was_executed_more_than(int n); @@ -386,7 +388,7 @@ if (TieredCompilation) ShouldNotReachHere(); return ++_interpreter_invocation_count; } - + #ifndef PRODUCT int compiled_invocation_count() const { return _compiled_invocation_count; } void set_compiled_invocation_count(int count) { _compiled_invocation_count = count; }