Class CompositorCumulativeStats

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class CompositorCumulativeStats
    extends Struct
    implements NativeResource
    Cumulative stats for current application. These are not cleared until a new app connects, but they do stop accumulating once the associated app disconnects.

    Member documentation

    • m_nPid – Process id associated with these stats (may no longer be running).
    • m_nNumFramePresents – total number of times we called present (includes reprojected frames)
    • m_nNumDroppedFrames – total number of times an old frame was re-scanned out (without reprojection)
    • m_nNumReprojectedFrames – total number of times a frame was scanned out a second time (with reprojection)


     struct Compositor_CumulativeStats {
         uint32_t m_nPid;
         uint32_t m_nNumFramePresents;
         uint32_t m_nNumDroppedFrames;
         uint32_t m_nNumReprojectedFrames;
         uint32_t m_nNumFramePresentsOnStartup;
         uint32_t m_nNumDroppedFramesOnStartup;
         uint32_t m_nNumReprojectedFramesOnStartup;
         uint32_t m_nNumLoading;
         uint32_t m_nNumFramePresentsLoading;
         uint32_t m_nNumDroppedFramesLoading;
         uint32_t m_nNumReprojectedFramesLoading;
         uint32_t m_nNumTimedOut;
         uint32_t m_nNumFramePresentsTimedOut;
         uint32_t m_nNumDroppedFramesTimedOut;
         uint32_t m_nNumReprojectedFramesTimedOut;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • CompositorCumulativeStats

        public CompositorCumulativeStats​(java.nio.ByteBuffer container)
        Creates a CompositorCumulativeStats instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • m_nPid

        public int m_nPid()
        Returns the value of the m_nPid field.
      • m_nNumFramePresents

        public int m_nNumFramePresents()
        Returns the value of the m_nNumFramePresents field.
      • m_nNumDroppedFrames

        public int m_nNumDroppedFrames()
        Returns the value of the m_nNumDroppedFrames field.
      • m_nNumReprojectedFrames

        public int m_nNumReprojectedFrames()
        Returns the value of the m_nNumReprojectedFrames field.
      • m_nNumFramePresentsOnStartup

        public int m_nNumFramePresentsOnStartup()
        Returns the value of the m_nNumFramePresentsOnStartup field.
      • m_nNumDroppedFramesOnStartup

        public int m_nNumDroppedFramesOnStartup()
        Returns the value of the m_nNumDroppedFramesOnStartup field.
      • m_nNumReprojectedFramesOnStartup

        public int m_nNumReprojectedFramesOnStartup()
        Returns the value of the m_nNumReprojectedFramesOnStartup field.
      • m_nNumLoading

        public int m_nNumLoading()
        Returns the value of the m_nNumLoading field.
      • m_nNumFramePresentsLoading

        public int m_nNumFramePresentsLoading()
        Returns the value of the m_nNumFramePresentsLoading field.
      • m_nNumDroppedFramesLoading

        public int m_nNumDroppedFramesLoading()
        Returns the value of the m_nNumDroppedFramesLoading field.
      • m_nNumReprojectedFramesLoading

        public int m_nNumReprojectedFramesLoading()
        Returns the value of the m_nNumReprojectedFramesLoading field.
      • m_nNumTimedOut

        public int m_nNumTimedOut()
        Returns the value of the m_nNumTimedOut field.
      • m_nNumFramePresentsTimedOut

        public int m_nNumFramePresentsTimedOut()
        Returns the value of the m_nNumFramePresentsTimedOut field.
      • m_nNumDroppedFramesTimedOut

        public int m_nNumDroppedFramesTimedOut()
        Returns the value of the m_nNumDroppedFramesTimedOut field.
      • m_nNumReprojectedFramesTimedOut

        public int m_nNumReprojectedFramesTimedOut()
        Returns the value of the m_nNumReprojectedFramesTimedOut field.
      • malloc

        public static CompositorCumulativeStats malloc()
        Returns a new CompositorCumulativeStats instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static CompositorCumulativeStats calloc()
        Returns a new CompositorCumulativeStats instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static CompositorCumulativeStats create​(long address)
        Returns a new CompositorCumulativeStats instance for the specified memory address.
      • callocStack

        public static CompositorCumulativeStats callocStack()
        Returns a new CompositorCumulativeStats instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • callocStack

        public static CompositorCumulativeStats callocStack​(MemoryStack stack)
        Returns a new CompositorCumulativeStats instance allocated on the specified MemoryStack and initializes all its bits to zero.
        stack - the stack from which to allocate
      • nm_nPid

        public static int nm_nPid​(long struct)
        Unsafe version of m_nPid().
      • nm_nNumFramePresents

        public static int nm_nNumFramePresents​(long struct)
        Unsafe version of m_nNumFramePresents().
      • nm_nNumDroppedFrames

        public static int nm_nNumDroppedFrames​(long struct)
        Unsafe version of m_nNumDroppedFrames().
      • nm_nNumReprojectedFrames

        public static int nm_nNumReprojectedFrames​(long struct)
        Unsafe version of m_nNumReprojectedFrames().
      • nm_nNumLoading

        public static int nm_nNumLoading​(long struct)
        Unsafe version of m_nNumLoading().
      • nm_nNumFramePresentsLoading

        public static int nm_nNumFramePresentsLoading​(long struct)
        Unsafe version of m_nNumFramePresentsLoading().
      • nm_nNumDroppedFramesLoading

        public static int nm_nNumDroppedFramesLoading​(long struct)
        Unsafe version of m_nNumDroppedFramesLoading().
      • nm_nNumTimedOut

        public static int nm_nNumTimedOut​(long struct)
        Unsafe version of m_nNumTimedOut().
      • nm_nNumFramePresentsTimedOut

        public static int nm_nNumFramePresentsTimedOut​(long struct)
      • nm_nNumDroppedFramesTimedOut

        public static int nm_nNumDroppedFramesTimedOut​(long struct)