Merged PR 795059: Add further information about disk performance in PerformanceCollector

Add further information about disk performance in PerformanceCollector. To be used for FastDownload statistics in order to help determine where to focus efforts.
This commit is contained in:
Julian Bayardo 2024-07-12 22:50:46 +00:00
Родитель 3959ebb06d
Коммит c1b457226f
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -1138,9 +1138,21 @@ namespace BuildXL.Utilities
/// <nodoc/>
public Aggregation ReadTime = new Aggregation();
/// <nodoc/>
public Aggregation ReadCount = new Aggregation();
/// <nodoc/>
public Aggregation WriteTime = new Aggregation();
/// <nodoc/>
public Aggregation WriteCount = new Aggregation();
/// <nodoc/>
public Aggregation BytesRead = new Aggregation();
/// <nodoc/>
public Aggregation BytesWritten = new Aggregation();
/// <nodoc/>
public Aggregation AvailableSpaceGb = new Aggregation();
@ -1442,7 +1454,11 @@ namespace BuildXL.Utilities
{
m_diskStats[i].AvailableSpaceGb.RegisterSample(machineDiskStats[i].AvailableSpaceGb);
m_diskStats[i].ReadTime.RegisterSample(machineDiskStats[i].DiskPerformance.ReadTime);
m_diskStats[i].ReadCount.RegisterSample(machineDiskStats[i].DiskPerformance.ReadCount);
m_diskStats[i].WriteTime.RegisterSample(machineDiskStats[i].DiskPerformance.WriteTime);
m_diskStats[i].WriteCount.RegisterSample(machineDiskStats[i].DiskPerformance.WriteCount);
m_diskStats[i].BytesRead.RegisterSample(machineDiskStats[i].DiskPerformance.BytesRead);
m_diskStats[i].BytesWritten.RegisterSample(machineDiskStats[i].DiskPerformance.BytesWritten);
m_diskStats[i].IdleTime.RegisterSample(machineDiskStats[i].DiskPerformance.IdleTime);
m_diskStats[i].QueueDepth.RegisterSample(machineDiskStats[i].DiskPerformance.QueueDepth);
}