public BasePerformanceMonitorCounter(IPerformanceMonitorCounter pmc) : base(pmc.Name, pmc.DisplayName, pmc.Unit) { _interval = pmc.Interval; if (TraceEventProfileSources.GetInfo().TryGetValue(Id, out ProfileSourceInfo profileSourceInfo)) { _profileSourceInfoID = profileSourceInfo.ID; } else { _profileSourceInfoID = -1; } }
protected BasePerformanceMonitorCounter(IPerformanceMonitorCounter pmc) : base(pmc.Name, pmc.DisplayName, pmc.Unit) { _interval = pmc.Interval; ProfileSourceInfoID = GetProfileSourceInfoId(Id); }