Beispiel #1
0
        public StackHashPurgeStatistics Clone()
        {
            StackHashPurgeStatistics newStats = new StackHashPurgeStatistics(
                m_NumberOfCabs, m_CabsTotalSize, m_NumberOfDumpFiles, m_DumpFilesTotalSize);

            return(newStats);
        }
Beispiel #2
0
        public void Subtract(StackHashPurgeStatistics statisticsToSubtract)
        {
            if (statisticsToSubtract == null)
            {
                throw new ArgumentNullException("statisticsToSubtract");
            }

            m_NumberOfCabs       += statisticsToSubtract.NumberOfCabs;
            m_CabsTotalSize      += statisticsToSubtract.CabsTotalSize;
            m_NumberOfDumpFiles  += statisticsToSubtract.NumberOfDumpFiles;
            m_DumpFilesTotalSize += statisticsToSubtract.DumpFilesTotalSize;
        }
Beispiel #3
0
        public void Add(StackHashPurgeStatistics statisticsToAdd)
        {
            if (statisticsToAdd == null)
            {
                throw new ArgumentNullException("statisticsToAdd");
            }

            m_NumberOfCabs       += statisticsToAdd.NumberOfCabs;
            m_CabsTotalSize      += statisticsToAdd.CabsTotalSize;
            m_NumberOfDumpFiles  += statisticsToAdd.NumberOfDumpFiles;
            m_DumpFilesTotalSize += statisticsToAdd.DumpFilesTotalSize;
        }