< prev index next >

src/hotspot/share/runtime/thread.cpp

Print this page
rev 53271 : 8216981: Per thread IO statistics in JFR

*** 939,948 **** --- 939,965 ---- st->print("allocated=" SIZE_FORMAT "%s ", byte_size_in_proper_unit(allocated_bytes), proper_unit_for_byte_size(allocated_bytes) ); st->print("defined_classes=" INT64_FORMAT " ", _statistical_info.getDefineClassCount()); + + size_t file_written = (size_t) _statistical_info.getBytesWrittenToFile(); + size_t file_read = (size_t) _statistical_info.getBytesReadFromFile(); + size_t nw_written = (size_t) _statistical_info.getBytesWrittenToNetwork(); + size_t nw_read = (size_t) _statistical_info.getBytesReadFromNetwork(); + st->print("bytes_written_to_file=" SIZE_FORMAT "%s ", + byte_size_in_proper_unit(file_written), + proper_unit_for_byte_size(file_written)); + st->print("bytes_read_from_file=" SIZE_FORMAT "%s ", + byte_size_in_proper_unit(file_read), + proper_unit_for_byte_size(file_read)); + st->print("bytes_written_to_network=" SIZE_FORMAT "%s ", + byte_size_in_proper_unit(nw_written), + proper_unit_for_byte_size(nw_written)); + st->print("bytes_read_from_network=" SIZE_FORMAT "%s ", + byte_size_in_proper_unit(nw_read), + proper_unit_for_byte_size(nw_read)); } st->print("tid=" INTPTR_FORMAT " ", p2i(this)); osthread()->print_on(st); }
< prev index next >