Class RingBuffer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    class RingBuffer
    extends java.lang.Object
    implements java.io.Closeable
    • Field Detail

      • PAGE_SIZE

        private static final int PAGE_SIZE
      • address

        private final long address
      • mask

        private final long mask
      • sampleType

        private final int sampleType
    • Constructor Detail

      • RingBuffer

        RingBuffer​(int fd,
                   int pages,
                   int sampleType)
            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • readSample

        private PerfSample readSample​(long offset)
      • hasOption

        private boolean hasOption​(int option)
      • readLong

        private long readLong​(long offset)