Package one.jfr
Class JfrReader
java.lang.Object
one.jfr.JfrReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Dictionary<ClassRef> longfinal Dictionary<MethodRef> final Dictionary<StackTrace> longlongbooleanfinal Dictionary<byte[]> final Dictionary<String> longfinal Dictionary<one.jfr.JfrClass> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longbooleaneof()byte[]getBytes()doubleintgetEnumKey(String typeName, String value) getEnumValue(String typeName, int key) floatgetFloat()intlongbooleanlongnanosToTicks(long nanos) readAllEvents(Class<E> cls) <E extends Event>
E<E extends Event>
voidregisterEvent(String name, Class<E> eventClass)
-
Field Details
-
startNanos
public long startNanos -
endNanos
public long endNanos -
startTicks
public long startTicks -
ticksPerSec
public long ticksPerSec -
stopAtNewChunk
public boolean stopAtNewChunk -
types
-
typesByName
-
threads
-
classes
-
symbols
-
methods
-
stackTraces
-
settings
-
enums
-
-
Constructor Details
-
JfrReader
- Throws:
IOException
-
JfrReader
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
eof
public boolean eof() -
incomplete
public boolean incomplete() -
durationNanos
public long durationNanos() -
nanosToTicks
public long nanosToTicks(long nanos) -
registerEvent
-
readAllEvents
- Throws:
IOException
-
readAllEvents
- Throws:
IOException
-
readEvent
- Throws:
IOException
-
readEvent
- Throws:
IOException
-
getEnumKey
-
getEnumValue
-
getVarint
public int getVarint() -
getVarlong
public long getVarlong() -
getFloat
public float getFloat() -
getDouble
public double getDouble() -
getString
-
getBytes
public byte[] getBytes()
-