jdk.jfr.internal.MetadataDescriptor Java Examples
The following examples show how to use
jdk.jfr.internal.MetadataDescriptor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RecordingFile.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private static void aggregateTypeForChunk(ChunkHeader ch, List<EventType> types, HashSet<Long> foundIds) throws IOException { MetadataDescriptor m = ch.readMetadata(); for (EventType t : m.getEventTypes()) { if (!foundIds.contains(t.getId())) { types.add(t); foundIds.add(t.getId()); } } }
Example #2
Source File: ChunkHeader.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
public MetadataDescriptor readMetadata() throws IOException { input.position(absoluteChunkStart + metadataPosition); input.readInt(); // size long id = input.readLong(); // event type id if (id != METADATA_TYPE_ID) { throw new IOException("Expected metadata event. Type id=" + id + ", should have been " + METADATA_TYPE_ID); } input.readLong(); // start time input.readLong(); // duration long metadataId = input.readLong(); Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.TRACE, "Metadata id=" + metadataId); // No need to read if metadataId == lastMetadataId, but we // do it for verification purposes. return MetadataDescriptor.read(input); }
Example #3
Source File: RecordingFile.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private void aggregateTypeForChunk(ChunkHeader ch, List<Type> types, HashSet<Long> foundIds) throws IOException { MetadataDescriptor m = ch.readMetadata(); for (Type t : m.getTypes()) { if (!foundIds.contains(t.getId())) { types.add(t); foundIds.add(t.getId()); } } }
Example #4
Source File: RecordingFile.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static void aggregateEventTypeForChunk(ChunkHeader ch, List<EventType> types, HashSet<Long> foundIds) throws IOException { MetadataDescriptor m = ch.readMetadata(); for (EventType t : m.getEventTypes()) { if (!foundIds.contains(t.getId())) { types.add(t); foundIds.add(t.getId()); } } }
Example #5
Source File: ChunkHeader.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public MetadataDescriptor readMetadata() throws IOException { input.position(absoluteChunkStart + metadataPosition); input.readInt(); // size long id = input.readLong(); // event type id if (id != METADATA_TYPE_ID) { throw new IOException("Expected metadata event. Type id=" + id + ", should have been " + METADATA_TYPE_ID); } input.readLong(); // start time input.readLong(); // duration long metadataId = input.readLong(); Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.TRACE, "Metadata id=" + metadataId); // No need to read if metadataId == lastMetadataId, but we // do it for verification purposes. return MetadataDescriptor.read(input); }
Example #6
Source File: RecordingFile.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private void aggregateTypeForChunk(ChunkHeader ch, List<Type> types, HashSet<Long> foundIds) throws IOException { MetadataDescriptor m = ch.readMetadata(); for (Type t : m.getTypes()) { if (!foundIds.contains(t.getId())) { types.add(t); foundIds.add(t.getId()); } } }
Example #7
Source File: RecordingFile.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static void aggregateEventTypeForChunk(ChunkHeader ch, List<EventType> types, HashSet<Long> foundIds) throws IOException { MetadataDescriptor m = ch.readMetadata(); for (EventType t : m.getEventTypes()) { if (!foundIds.contains(t.getId())) { types.add(t); foundIds.add(t.getId()); } } }
Example #8
Source File: ChunkHeader.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public MetadataDescriptor readMetadata() throws IOException { input.position(absoluteChunkStart + metadataPosition); input.readInt(); // size long id = input.readLong(); // event type id if (id != METADATA_TYPE_ID) { throw new IOException("Expected metadata event. Type id=" + id + ", should have been " + METADATA_TYPE_ID); } input.readLong(); // start time input.readLong(); // duration long metadataId = input.readLong(); Logger.log(LogTag.JFR_SYSTEM_PARSER, LogLevel.TRACE, "Metadata id=" + metadataId); // No need to read if metadataId == lastMetadataId, but we // do it for verification purposes. return MetadataDescriptor.read(input); }