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)

    Layout

    
     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.
      • M_NPID, M_NNUMFRAMEPRESENTS, M_NNUMDROPPEDFRAMES, M_NNUMREPROJECTEDFRAMES, M_NNUMFRAMEPRESENTSONSTARTUP, M_NNUMDROPPEDFRAMESONSTARTUP, M_NNUMREPROJECTEDFRAMESONSTARTUP, M_NNUMLOADING, M_NNUMFRAMEPRESENTSLOADING, M_NNUMDROPPEDFRAMESLOADING, M_NNUMREPROJECTEDFRAMESLOADING, M_NNUMTIMEDOUT, M_NNUMFRAMEPRESENTSTIMEDOUT, M_NNUMDROPPEDFRAMESTIMEDOUT, M_NNUMREPROJECTEDFRAMESTIMEDOUT

        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.