示例#1
0
        private IDisposable StartMetric(string name)
        {
            var metric = new PerformanceMetric()
            {
                Name = name
            };

            PerformanceMetrics[name] = metric;
            return(metric);
        }
示例#2
0
 public GenericPerformanceMonitorCounterDiscoverer()
 {
     _performanceMonitorCounter = new T();
     _pmcId = PerformanceMetric.GetProfileSourceInfoId(_performanceMonitorCounter.Name);
 }
示例#3
0
 public InstructionsRetiredMetricDiscoverer()
 {
     ProfileSource = PerformanceMetric.GetProfileSourceInfoId(CounterName);
 }