Java Code Examples for jdk.jfr.internal.consumer.ChunkHeader#readMetadata()
The following examples show how to use
jdk.jfr.internal.consumer.ChunkHeader#readMetadata() .
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: ChunkParser.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
private ChunkParser(ChunkHeader header) throws IOException { this.input = header.getInput(); this.chunkHeader = header; this.metadata = header.readMetadata(); this.absoluteChunkEnd = header.getEnd(); this.timeConverter = new TimeConverter(chunkHeader); ParserFactory factory = new ParserFactory(metadata, timeConverter); LongMap<ConstantMap> constantPools = factory.getConstantPools(); parsers = factory.getParsers(); typeMap = factory.getTypeMap(); fillConstantPools(parsers, constantPools); constantPools.forEach(ConstantMap::setIsResolving); constantPools.forEach(ConstantMap::resolve); constantPools.forEach(ConstantMap::setResolved); input.position(chunkHeader.getEventStart()); }
Example 2
Source File: ChunkParser.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private ChunkParser(ChunkHeader header) throws IOException { this.input = header.getInput(); this.chunkHeader = header; this.metadata = header.readMetadata(); this.absoluteChunkEnd = header.getEnd(); this.timeConverter = new TimeConverter(chunkHeader, metadata.getGMTOffset()); ParserFactory factory = new ParserFactory(metadata, timeConverter); LongMap<ConstantMap> constantPools = factory.getConstantPools(); parsers = factory.getParsers(); typeMap = factory.getTypeMap(); fillConstantPools(parsers, constantPools); constantPools.forEach(ConstantMap::setIsResolving); constantPools.forEach(ConstantMap::resolve); constantPools.forEach(ConstantMap::setResolved); input.position(chunkHeader.getEventStart()); }
Example 3
Source File: ChunkParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private ChunkParser(ChunkHeader header) throws IOException { this.input = header.getInput(); this.chunkHeader = header; this.metadata = header.readMetadata(); this.absoluteChunkEnd = header.getEnd(); this.timeConverter = new TimeConverter(chunkHeader, metadata.getGMTOffset()); ParserFactory factory = new ParserFactory(metadata, timeConverter); LongMap<ConstantMap> constantPools = factory.getConstantPools(); parsers = factory.getParsers(); typeMap = factory.getTypeMap(); fillConstantPools(parsers, constantPools); constantPools.forEach(ConstantMap::setIsResolving); constantPools.forEach(ConstantMap::resolve); constantPools.forEach(ConstantMap::setResolved); input.position(chunkHeader.getEventStart()); }
Example 4
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 5
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 6
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 7
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 8
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()); } } }