8185525: Add JFR event for DictionarySizes

Added TableStatistics event

Reviewed-by: egahlin, coleenp
This commit is contained in:
Gerard Ziemski 2019-05-08 11:11:50 -05:00
parent c5fc45ee08
commit d988e67b89
22 changed files with 594 additions and 75 deletions

View file

@ -579,6 +579,13 @@ struct SizeFunc : StackObj {
};
};
TableStatistics StringTable::get_table_statistics() {
static TableStatistics ts;
SizeFunc sz;
ts = _local_table->statistics_get(Thread::current(), sz, ts);
return ts;
}
void StringTable::print_table_statistics(outputStream* st,
const char* table_name) {
SizeFunc sz;