예제 #1
0
 // Token: 0x060004A2 RID: 1186 RVA: 0x0001A9FB File Offset: 0x00018BFB
 public static void UpdateGlobalCounter(Counter counter, UpdateType updateType, uint value)
 {
     if (Globals.InstanceType == InstanceType.NotInitialized)
     {
         Globals.InitializeUnknownPerfCounterInstance();
     }
     NativeMethods.DsaccessPerfCounterUpdate(268U, (uint)counter, (uint)updateType, value, null);
 }
예제 #2
0
 // Token: 0x060004A1 RID: 1185 RVA: 0x0001A9DF File Offset: 0x00018BDF
 public static void UpdateDCCounter(string dcName, Counter counter, UpdateType updateType, uint value)
 {
     if (Globals.InstanceType == InstanceType.NotInitialized)
     {
         Globals.InitializeUnknownPerfCounterInstance();
     }
     NativeMethods.DsaccessPerfCounterUpdate(146U, (uint)counter, (uint)updateType, value, dcName);
 }
예제 #3
0
 // Token: 0x0600049E RID: 1182 RVA: 0x0001A90D File Offset: 0x00018B0D
 public static void AddDCInstance(string serverName)
 {
     if (Globals.InstanceType == InstanceType.NotInitialized)
     {
         Globals.InitializeUnknownPerfCounterInstance();
     }
     NativeMethods.DsaccessPerfDCAddToList(serverName);
 }
예제 #4
0
 // Token: 0x0600049D RID: 1181 RVA: 0x0001A8FA File Offset: 0x00018AFA
 public static void FinalizeDCCountersRefresh()
 {
     if (Globals.InstanceType == InstanceType.NotInitialized)
     {
         Globals.InitializeUnknownPerfCounterInstance();
     }
     NativeMethods.DsaccessPerfDCFinalizeRefresh();
 }
예제 #5
0
        // Token: 0x060004A0 RID: 1184 RVA: 0x0001A93C File Offset: 0x00018B3C
        public static void UpdateProcessTimeSearchPercentileCounter(uint value)
        {
            if (Globals.InstanceType == InstanceType.NotInitialized)
            {
                Globals.InitializeUnknownPerfCounterInstance();
            }
            ADProviderPerf.perProcessPercentileADLatency.AddValue((long)((ulong)value));
            uint value2 = (uint)ADProviderPerf.perProcessPercentileADLatency.PercentileQuery(90.0);

            ADProviderPerf.UpdateProcessCounter(Counter.ProcessTimeSearchNinetiethPercentile, UpdateType.Add, value2);
            ADProviderPerf.UpdateProcessCounter(Counter.ProcessTimeSearchNinetiethPercentileBase, UpdateType.Add, 1U);
            value2 = (uint)ADProviderPerf.perProcessPercentileADLatency.PercentileQuery(95.0);
            ADProviderPerf.UpdateProcessCounter(Counter.ProcessTimeSearchNinetyFifthPercentile, UpdateType.Add, value2);
            ADProviderPerf.UpdateProcessCounter(Counter.ProcessTimeSearchNinetyFifthPercentileBase, UpdateType.Add, 1U);
            value2 = (uint)ADProviderPerf.perProcessPercentileADLatency.PercentileQuery(99.0);
            ADProviderPerf.UpdateProcessCounter(Counter.ProcessTimeSearchNinetyNinethPercentile, UpdateType.Add, value2);
            ADProviderPerf.UpdateProcessCounter(Counter.ProcessTimeSearchNinetyNinethPercentileBase, UpdateType.Add, 1U);
        }