コード例 #1
0
 public DurationMeasurement(IoMeterBuffer parent, IoMetrics.MeterType type, long size)
 {
     Parent = parent;
     _type  = type;
     Size   = size;
     _start = DateTime.UtcNow;
 }
コード例 #2
0
            public FileIoMetrics(string filename, int metricsBufferSize, int summaryBufferSize)
            {
                FileName = filename;

                JournalWrite = new IoMeterBuffer(metricsBufferSize, summaryBufferSize);
                DataFlush    = new IoMeterBuffer(metricsBufferSize, summaryBufferSize);
                DataSync     = new IoMeterBuffer(metricsBufferSize, summaryBufferSize);
            }
コード例 #3
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;
 }