8198691: CodeHeap State Analytics

Reviewed-by: kvn, thartmann
This commit is contained in:
Lutz Schmidt 2018-03-26 12:59:45 -07:00
parent 9b9d9308ed
commit b7cb1a07e4
14 changed files with 2832 additions and 19 deletions

View file

@ -316,8 +316,13 @@ void print_statistics() {
CodeCache::print();
}
if (PrintMethodFlushingStatistics) {
NMethodSweeper::print();
// CodeHeap State Analytics.
// Does also call NMethodSweeper::print(tty)
LogTarget(Trace, codecache) lt;
if (lt.is_enabled()) {
CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
} else if (PrintMethodFlushingStatistics) {
NMethodSweeper::print(tty);
}
if (PrintCodeCache2) {
@ -379,8 +384,13 @@ void print_statistics() {
CodeCache::print();
}
if (PrintMethodFlushingStatistics) {
NMethodSweeper::print();
// CodeHeap State Analytics.
// Does also call NMethodSweeper::print(tty)
LogTarget(Trace, codecache) lt;
if (lt.is_enabled()) {
CompileBroker::print_heapinfo(NULL, "all", "4096"); // details
} else if (PrintMethodFlushingStatistics) {
NMethodSweeper::print(tty);
}
#ifdef COMPILER2