public DurationMeasurement(IoMeterBuffer parent, IoMetrics.MeterType type, long size) { Parent = parent; _type = type; Size = size; _start = DateTime.UtcNow; }
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); }
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; }