8153074: UL: Show output option in VM.log jcmd

Reviewed-by: dholmes, mlarsson
This commit is contained in:
Yasumasa Suenaga 2016-07-06 20:58:08 +09:00
parent 2cede6dbc1
commit c02ce6ab61
5 changed files with 30 additions and 11 deletions

View file

@ -428,3 +428,13 @@ char* LogFileOutput::make_file_name(const char* file_name,
result[result_len] = '\0';
return result;
}
void LogFileOutput::describe(outputStream *out) {
LogOutput::describe(out);
out->print(" ");
out->print("filecount=%u,filesize=" SIZE_FORMAT "%s", _file_count,
byte_size_in_proper_unit(_rotate_size),
proper_unit_for_byte_size(_rotate_size));
}