diff --git a/Public/Src/Engine/Scheduler/Scheduler.cs b/Public/Src/Engine/Scheduler/Scheduler.cs index 249242973..6ad54a32a 100644 --- a/Public/Src/Engine/Scheduler/Scheduler.cs +++ b/Public/Src/Engine/Scheduler/Scheduler.cs @@ -2356,24 +2356,24 @@ namespace BuildXL.Scheduler return new StatusRows() { { "Cpu Percent", data => data.CpuPercent }, - { "Cpu Percent (WMI)", data => m_perfInfo.CpuWMIUsagePercentage }, + { "Cpu Percent (WMI)", data => m_perfInfo.CpuWMIUsagePercentage, OperatingSystemHelper.IsWindowsOS }, - { "ContextSwitches (WMI)", data => m_perfInfo.ContextSwitchesPerSec }, - { "CpuQueueLength (WMI)", data => m_perfInfo.CpuQueueLength }, - { "Threads (WMI)", data => m_perfInfo.Threads }, - { "Processes (WMI)", data => m_perfInfo.Processes }, + { "ContextSwitches (WMI)", data => m_perfInfo.ContextSwitchesPerSec, OperatingSystemHelper.IsWindowsOS }, + { "CpuQueueLength (WMI)", data => m_perfInfo.CpuQueueLength, OperatingSystemHelper.IsWindowsOS }, + { "Threads (WMI)", data => m_perfInfo.Threads, OperatingSystemHelper.IsWindowsOS }, + { "Processes (WMI)", data => m_perfInfo.Processes , OperatingSystemHelper.IsWindowsOS}, { "BuildXL Cpu Percent", data => m_perfInfo.ProcessCpuPercentage }, - { "JobObject Cpu Percent", data => m_perfInfo.JobObjectCpu }, - { "JobObject Processes", data => m_perfInfo.JobObjectProcesses }, + { "JobObject Cpu Percent", data => m_perfInfo.JobObjectCpu, OperatingSystemHelper.IsWindowsOS }, + { "JobObject Processes", data => m_perfInfo.JobObjectProcesses, OperatingSystemHelper.IsWindowsOS }, { "Ram Percent", data => data.RamPercent }, { "EffectiveRam Percent", data => m_perfInfo.EffectiveRamUsagePercentage ?? 0}, { "Used Ram Mb", data => data.RamUsedMb }, { "Free Ram Mb", data => data.RamFreeMb }, - { "ModifiedPagelistMb", data => m_perfInfo.ModifiedPagelistMb ?? 0}, - { "Commit Percent", data => data.CommitPercent }, - { "Used Commit Mb", data => data.CommitUsedMb }, - { "Free Commit Mb", data => data.CommitFreeMb }, + { "ModifiedPagelistMb", data => m_perfInfo.ModifiedPagelistMb ?? 0, OperatingSystemHelper.IsWindowsOS}, + { "Commit Percent", data => data.CommitPercent , OperatingSystemHelper.IsWindowsOS}, + { "Used Commit Mb", data => data.CommitUsedMb , OperatingSystemHelper.IsWindowsOS}, + { "Free Commit Mb", data => data.CommitFreeMb , OperatingSystemHelper.IsWindowsOS}, { "NetworkBandwidth", data => m_perfInfo.MachineBandwidth }, { "MachineKbitsPerSecSent", data => (long)m_perfInfo.MachineKbitsPerSecSent }, { "MachineKbitsPerSecReceived", data => (long)m_perfInfo.MachineKbitsPerSecReceived },