Exemplo n.º 1
0
 public void RaiseNotifications(string fileName, IoMeterBuffer.MeterItem meterItem)
 {
     OnIoChange?.Invoke(new IoChange
     {
         FileName  = fileName,
         MeterItem = meterItem
     });
 }
Exemplo n.º 2
0
 public static IOMetricsRecentStats GetIoMetricsRecentStats(IoMeterBuffer.MeterItem recentMetric)
 {
     return(new IOMetricsRecentStats
     {
         Start = recentMetric.Start.GetDefaultRavenFormat(true),
         Size = recentMetric.Size,
         Acceleration = recentMetric.Acceleration,
         CompressedSize = recentMetric.CompressedSize,
         HumaneCompressedSize = Sizes.Humane(recentMetric.CompressedSize),
         HumaneSize = Sizes.Humane(recentMetric.Size),
         FileSize = recentMetric.FileSize,
         HumaneFileSize = Sizes.Humane(recentMetric.FileSize),
         Duration = Math.Round(recentMetric.Duration.TotalMilliseconds, 2),
         Type = recentMetric.Type
     });
 }