Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
8610:5407d1dd6450 | 8611:6c4db417385a |
---|---|
368 void set_graal_invocation_time(jlong time) { _graal_invocation_time = time; } | 368 void set_graal_invocation_time(jlong time) { _graal_invocation_time = time; } |
369 jlong graal_invocation_time() { return _graal_invocation_time; } | 369 jlong graal_invocation_time() { return _graal_invocation_time; } |
370 | 370 |
371 void set_graal_priority(int prio) { _graal_priority = prio; } | 371 void set_graal_priority(int prio) { _graal_priority = prio; } |
372 int graal_priority() { return _graal_priority; } | 372 int graal_priority() { return _graal_priority; } |
373 | |
374 void reset_counters(); | |
373 #endif // GRAAL | 375 #endif // GRAAL |
374 | 376 |
375 bool was_executed_more_than(int n); | 377 bool was_executed_more_than(int n); |
376 bool was_never_executed() { return !was_executed_more_than(0); } | 378 bool was_never_executed() { return !was_executed_more_than(0); } |
377 | 379 |
384 void set_interpreter_invocation_count(int count) { _interpreter_invocation_count = count; } | 386 void set_interpreter_invocation_count(int count) { _interpreter_invocation_count = count; } |
385 int increment_interpreter_invocation_count() { | 387 int increment_interpreter_invocation_count() { |
386 if (TieredCompilation) ShouldNotReachHere(); | 388 if (TieredCompilation) ShouldNotReachHere(); |
387 return ++_interpreter_invocation_count; | 389 return ++_interpreter_invocation_count; |
388 } | 390 } |
389 | 391 |
390 #ifndef PRODUCT | 392 #ifndef PRODUCT |
391 int compiled_invocation_count() const { return _compiled_invocation_count; } | 393 int compiled_invocation_count() const { return _compiled_invocation_count; } |
392 void set_compiled_invocation_count(int count) { _compiled_invocation_count = count; } | 394 void set_compiled_invocation_count(int count) { _compiled_invocation_count = count; } |
393 #endif // not PRODUCT | 395 #endif // not PRODUCT |
394 | 396 |