Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45c41a89 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "surfaceflinger: Frame missed count added to dumpsys SF"

parents eb22a6bf cfcdaa5c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1466,6 +1466,7 @@ void SurfaceFlinger::onMessageReceived(int32_t what) {
                    mPreviousPresentFence != Fence::NO_FENCE &&
                    (mPreviousPresentFence->getSignalTime() ==
                            Fence::SIGNAL_TIME_PENDING);
            mFrameMissedCount += frameMissed;
            ATRACE_INT("FrameMissed", static_cast<int>(frameMissed));
            if (frameMissed) {
                mTimeStats.incrementMissedFrames();
@@ -4341,6 +4342,8 @@ void SurfaceFlinger::dumpAllLocked(const Vector<String16>& args, size_t& index,
    dumpStaticScreenStats(result);
    result.append("\n");

    result.appendFormat("Missed frame count: %u\n\n", mFrameMissedCount.load());

    dumpBufferingStats(result);

    /*
+1 −0
Original line number Diff line number Diff line
@@ -840,6 +840,7 @@ private:
    LayerStats mLayerStats;
    TimeStats& mTimeStats = TimeStats::getInstance();
    bool mUseHwcVirtualDisplays = false;
    std::atomic<uint32_t> mFrameMissedCount{0};

    // Restrict layers to use two buffers in their bufferqueues.
    bool mLayerTripleBufferingDisabled = false;