Example #1
0
 internal override void MergeInto(Dictionary <Guid, UserProviderInfo> userInfo, KernelProviderInfo kernelInfo, Dictionary <string, CpuCounterInfo> cpuInfo)
 {
     if (!userInfo.TryGetValue(ProviderGuid, out var current))
     {
         userInfo.Add(ProviderGuid, this);
     }
     else
     {
         userInfo[ProviderGuid] = new UserProviderInfo()
         {
             ProviderGuid = ProviderGuid,
             Keywords     = current.Keywords | Keywords,
             Level        = (Level > current.Level) ? Level : current.Level
         };
     }
 }
 internal override void MergeInto(Dictionary<Guid, UserProviderInfo> userInfo, KernelProviderInfo kernelInfo, Dictionary<string, CpuCounterInfo> cpuInfo)
 {
     UserProviderInfo current;
     if (!userInfo.TryGetValue(ProviderGuid, out current))
     {
         userInfo.Add(ProviderGuid, this);
     }
     else
     {
         userInfo[ProviderGuid] = new UserProviderInfo()
         {
             ProviderGuid = this.ProviderGuid,
             Keywords = current.Keywords | this.Keywords,
             Level = (this.Level > current.Level) ? this.Level : current.Level
         };
     }
 }