private IDisposable StartMetric(string name) { var metric = new PerformanceMetric() { Name = name }; PerformanceMetrics[name] = metric; return(metric); }
public GenericPerformanceMonitorCounterDiscoverer() { _performanceMonitorCounter = new T(); _pmcId = PerformanceMetric.GetProfileSourceInfoId(_performanceMonitorCounter.Name); }
public InstructionsRetiredMetricDiscoverer() { ProfileSource = PerformanceMetric.GetProfileSourceInfoId(CounterName); }