mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8037970: make PrintMethodData a diagnostic options
Make PrintMethodData a diagnostic options for performance investigation Reviewed-by: kvn, iveresov
This commit is contained in:
parent
fa3b0a8f47
commit
b21d142f01
10 changed files with 83 additions and 142 deletions
|
@ -429,6 +429,9 @@ class Method : public Metadata {
|
|||
#ifndef PRODUCT
|
||||
int compiled_invocation_count() const { return _compiled_invocation_count; }
|
||||
void set_compiled_invocation_count(int count) { _compiled_invocation_count = count; }
|
||||
#else
|
||||
// for PrintMethodData in a product build
|
||||
int compiled_invocation_count() const { return 0; }
|
||||
#endif // not PRODUCT
|
||||
|
||||
// Clear (non-shared space) pointers which could not be relevant
|
||||
|
@ -497,10 +500,8 @@ class Method : public Metadata {
|
|||
// Interpreter oopmap support
|
||||
void mask_for(int bci, InterpreterOopMap* mask);
|
||||
|
||||
#ifndef PRODUCT
|
||||
// operations on invocation counter
|
||||
void print_invocation_count();
|
||||
#endif
|
||||
|
||||
// byte codes
|
||||
void set_code(address code) { return constMethod()->set_code(code); }
|
||||
|
@ -509,8 +510,8 @@ class Method : public Metadata {
|
|||
|
||||
// prints byte codes
|
||||
void print_codes() const { print_codes_on(tty); }
|
||||
void print_codes_on(outputStream* st) const PRODUCT_RETURN;
|
||||
void print_codes_on(int from, int to, outputStream* st) const PRODUCT_RETURN;
|
||||
void print_codes_on(outputStream* st) const;
|
||||
void print_codes_on(int from, int to, outputStream* st) const;
|
||||
|
||||
// method parameters
|
||||
bool has_method_parameters() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue