8291022: JFR: Reduce logging in ChunkHeader constructor
Reviewed-by: mgronlun
This commit is contained in:
parent
3efbd5f0fa
commit
1d26c4b149
@ -88,21 +88,25 @@ public final class ChunkHeader {
|
|||||||
if (major != 1 && major != 2) {
|
if (major != 1 && major != 2) {
|
||||||
throw new IOException("File version " + major + "." + minor + ". Only Flight Recorder files of version 1.x and 2.x can be read by this JDK.");
|
throw new IOException("File version " + major + "." + minor + ". Only Flight Recorder files of version 1.x and 2.x can be read by this JDK.");
|
||||||
}
|
}
|
||||||
long c = input.readRawLong(); // chunk size
|
// Chunk size, constant pool position and metadata position are
|
||||||
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: chunkSize=" + c);
|
// updated by JVM and not reliable to read
|
||||||
long cp = input.readRawLong(); // constant pool position
|
input.skipBytes(3 * Long.BYTES);
|
||||||
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: constantPoolPosition=" + cp);
|
|
||||||
long mp = input.readRawLong(); // metadata position
|
chunkStartNanos = input.readRawLong();
|
||||||
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: metadataPosition=" + mp);
|
|
||||||
chunkStartNanos = input.readRawLong(); // nanos since epoch
|
|
||||||
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: startNanos=" + chunkStartNanos);
|
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: startNanos=" + chunkStartNanos);
|
||||||
durationNanos = input.readRawLong(); // duration nanos, not used
|
|
||||||
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: durationNanos=" + durationNanos);
|
// Duration nanos, updated by JVM and not reliable to read
|
||||||
|
input.skipBytes(Long.BYTES);
|
||||||
|
|
||||||
chunkStartTicks = input.readRawLong();
|
chunkStartTicks = input.readRawLong();
|
||||||
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: startTicks=" + chunkStartTicks);
|
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: startTicks=" + chunkStartTicks);
|
||||||
|
|
||||||
ticksPerSecond = input.readRawLong();
|
ticksPerSecond = input.readRawLong();
|
||||||
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: ticksPerSecond=" + ticksPerSecond);
|
Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.INFO, "Chunk: ticksPerSecond=" + ticksPerSecond);
|
||||||
input.readRawInt(); // ignore file state and flag bits
|
|
||||||
|
// File state and flag bit, updated by JVM and not reliable to read
|
||||||
|
input.skipBytes(Integer.BYTES);
|
||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
input.position(absoluteEventStart);
|
input.position(absoluteEventStart);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user