示例#1
0
            public FileIoMetrics(string filename, int metricsBufferSize, int summaryBufferSize)
            {
                FileName = filename;

                Compression  = new IoMeterBuffer(metricsBufferSize, summaryBufferSize);
                JournalWrite = new IoMeterBuffer(metricsBufferSize, summaryBufferSize);
                DataFlush    = new IoMeterBuffer(metricsBufferSize, summaryBufferSize);
                DataSync     = new IoMeterBuffer(metricsBufferSize, summaryBufferSize);
            }
示例#2
0
 public DurationMeasurement(IoMeterBuffer parent, IoMetrics.MeterType type, long size, long filesize, Action <MeterItem> onFileChange)
 {
     Parent         = parent;
     Type           = type;
     Size           = size;
     FileSize       = filesize;
     Start          = DateTime.UtcNow;
     End            = default(DateTime);
     OnFileChange   = onFileChange;
     CompressedSize = 0;
     Acceleration   = 1;
 }