Class RingBuffer

java.lang.Object
one.nio.os.perf.RingBuffer
All Implemented Interfaces:
Closeable, AutoCloseable

class RingBuffer extends Object implements Closeable
  • Field Details

    • PAGE_SIZE

      private static final int PAGE_SIZE
    • HEAD_OFFSET

      private static final int HEAD_OFFSET
      See Also:
    • TAIL_OFFSET

      private static final int TAIL_OFFSET
      See Also:
    • PERF_RECORD_SAMPLE

      private static final int PERF_RECORD_SAMPLE
      See Also:
    • address

      private final long address
    • mask

      private final long mask
    • sampleType

      private final int sampleType
  • Constructor Details

  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • nextSample

      PerfSample nextSample()
    • readSample

      private PerfSample readSample(long offset)
    • hasOption

      private boolean hasOption(int option)
    • readLong

      private long readLong(long offset)