-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
write VM heap class histogram at iteration end and/or start #2674
write VM heap class histogram at iteration end and/or start #2674
Conversation
invoke("gcClassHistogram") | ||
} | ||
|
||
// commands examples: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to use Scala type system to help with possible params. It can be done by using ADT, for example,
sealed trait JFRCommand {
def asStr: String
}
object JFRCommand {
case object GcRun extends JFRCommand {
def asStr: String = "gcRun"
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, looks cool, thanks!
new VMInfoCollector(objectName) | ||
} catch { | ||
case _: MalformedObjectNameException => | ||
throw new RuntimeException( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not throw away that exception, but instead, pass it to RuntimeException
so there will be more information what went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
test! |
test! |
test! |
2 similar comments
test! |
test! |
…debug-memory-leaks write VM heap class histogram at iteration end and/or start
This change is