public static MachineMetrics Create(MachineMetricsCategory category = MachineMetricsCategory.All) { var metrics = new MachineMetrics(); if (category.HasFlag(MachineMetricsCategory.PhysicalDisk)) { metrics.InstallPhysicalDisk(); } if (category.HasFlag(MachineMetricsCategory.LogicalDisk)) { metrics.InstallLogicalDisk(); } if (category.HasFlag(MachineMetricsCategory.LocksAndThreads)) { metrics.InstallClrLocksAndThreads(); } if (category.HasFlag(MachineMetricsCategory.Memory)) { metrics.InstallClrMemory(); } return(metrics); }
public void Install(MachineMetricsCategory category = MachineMetricsCategory.All) { if(category.HasFlag(MachineMetricsCategory.PhysicalDisk)) InstallPhysicalDisk(); if (category.HasFlag(MachineMetricsCategory.LogicalDisk)) InstallLogicalDisk(); if (category.HasFlag(MachineMetricsCategory.LocksAndThreads)) InstallClrLocksAndThreads(); if (category.HasFlag(MachineMetricsCategory.Memory)) InstallClrMemory(); }
public static MachineMetrics Create(MachineMetricsCategory category = MachineMetricsCategory.All) { var metrics = new MachineMetrics(); if (category.HasFlag(MachineMetricsCategory.PhysicalDisk)) metrics.InstallPhysicalDisk(); if (category.HasFlag(MachineMetricsCategory.LogicalDisk)) metrics.InstallLogicalDisk(); if (category.HasFlag(MachineMetricsCategory.LocksAndThreads)) metrics.InstallClrLocksAndThreads(); if (category.HasFlag(MachineMetricsCategory.Memory)) metrics.InstallClrMemory(); return metrics; }
public void Install(MachineMetricsCategory category = MachineMetricsCategory.All) { if (category.HasFlag(MachineMetricsCategory.PhysicalDisk)) { InstallPhysicalDisk(); } if (category.HasFlag(MachineMetricsCategory.LogicalDisk)) { InstallLogicalDisk(); } if (category.HasFlag(MachineMetricsCategory.LocksAndThreads)) { InstallClrLocksAndThreads(); } if (category.HasFlag(MachineMetricsCategory.Memory)) { InstallClrMemory(); } }