8256735: JFR: 'jfr' tool displays incorrect timestamps

Reviewed-by: mseledtsov, mgronlun
This commit is contained in:
Erik Gahlin 2021-09-20 20:43:22 +00:00
parent 5fde4b64e2
commit ee3576a48b

View File

@ -59,7 +59,7 @@ import jdk.jfr.internal.Utils;
*/
public final class PrettyWriter extends EventPrintWriter {
private static final String TYPE_OLD_OBJECT = Type.TYPES_PREFIX + "OldObject";
private static final DateTimeFormatter TIME_FORMAT = DateTimeFormatter.ofPattern("HH:mm:ss.SSS");
private static final DateTimeFormatter TIME_FORMAT = DateTimeFormatter.ofPattern("HH:mm:ss.SSS (YYYY-MM-dd)");
private static final Long ZERO = 0L;
private boolean showIds;
private RecordedEvent currentEvent;