bool IsEmpty()

in host/cxpslib/Telemetry/CxpsPerfCounters.h [102:141]


        bool IsEmpty() const
        {
            // Note: It might be enough to check only if {file, nw} x {R,W} counts == 0,
            // but this check would help us find errors in the telemetry code, when
            // an incorrect data shows up and could be caught by asserting against counts.
            return
                m_totalFileWriteTime == 0 &&
                m_totalFileReadTime == 0 &&
                m_totalNwReadTime == 0 &&
                m_totalNwWriteTime == 0 &&

                m_totalFileFlushTime == 0 &&
                m_totalFileCompressTime == 0 &&

                m_totalFileWriteCnt == 0 &&
                m_totalFileReadCnt == 0 &&
                m_totalNwReadCnt == 0 &&
                m_totalNwWriteCnt == 0 &&

                m_succFileWriteCnt == 0 &&
                m_succFileReadCnt == 0 &&
                m_succNwReadCnt == 0 &&
                m_succNwWriteCnt == 0 &&

                m_failedFileWriteCnt == 0 &&
                m_failedFileReadCnt == 0 &&
                m_failedNwReadCnt == 0 &&
                m_failedNwWriteCnt == 0 &&

                m_totalNwReadBytes == 0 &&
                m_totalNwWrittenBytes == 0 &&
                m_totalFileReadBytes == 0 &&
                m_totalFileWrittenBytes == 0 &&

                m_totalPutReqInterRequestTime == 0;

            // TODO-SanKumar-1711: Check
            // all m_nwReadBuckets[Tunables::NwReadLatencyBucketsCount] == 0
            // all m_fWriteBuckets[Tunables::FWriteLatencyBucketsCount] == 0
        }