Beispiel #1
0
    private JCsProfilerMethod CreateNewPCMethod(PerformanceCounterKey key)
    {
        string className    = key.ClassName;
        string instanceName = key.InstanceName;
        string methodName   = key.MethodName;

        /*
         * The following operation is only done once for each method to
         * be profiled (when it's called for the very first time), so
         * instead of adding extra structures I do it the expansive way...
         */
        PerformanceCounterClass    myClass    = null;
        PerformanceCounterInstance myInstance = null;
        JCsProfilerMethod          newMethod  = null;

        // see if the class exists already...
        foreach (PerformanceCounterClass pcClass in classes)
        {
            if (pcClass.Name.Equals(className))
            {
                myClass = pcClass;
                break;
            }
        }
        // if not - create it...
        if (myClass == null)
        {
            myClass = new PerformanceCounterClass(className);
            classes.Add(myClass);
        }
        // now see if that class has the relevant instance
        foreach (PerformanceCounterInstance pcInstance in myClass.Instances)
        {
            if (pcInstance.Name.Equals(instanceName))
            {
                myInstance = pcInstance;
                break;
            }
        }
        // if not - create it...
        if (myInstance == null)
        {
            myInstance = new PerformanceCounterInstance(instanceName, myClass);
        }
        // now we do know the method doesn't exist, or we wouldn't be here right now ;-)
        newMethod = new JCsProfilerMethod(methodName, myInstance);
        allPerformanceCounters.Add(key, newMethod);
        return(newMethod);
    }
Beispiel #2
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new PeopleIKnowInstance(instanceName, (PeopleIKnowInstance)totalInstance));
 }
Beispiel #3
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new SharedMailboxSentItemsDeliveryAgentInstance(instanceName, (SharedMailboxSentItemsDeliveryAgentInstance)totalInstance));
 }
Beispiel #4
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new TaskDistributionFabricPerfCountersInstance(instanceName, (TaskDistributionFabricPerfCountersInstance)totalInstance));
 }
Beispiel #5
0
 // Token: 0x0600248C RID: 9356 RVA: 0x000ACA4A File Offset: 0x000AAC4A
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new SourceDatabasePerformanceCountersInstance(instanceName, (SourceDatabasePerformanceCountersInstance)totalInstance));
 }
Beispiel #6
0
 // Token: 0x060078AA RID: 30890 RVA: 0x0018FF36 File Offset: 0x0018E136
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new MSExchangeUserThrottlingInstance(instanceName, (MSExchangeUserThrottlingInstance)totalInstance));
 }
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new MSExchangeADAccessCacheCountersInstance(instanceName, (MSExchangeADAccessCacheCountersInstance)totalInstance));
 }
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new PerformanceCountersPerDatabaseInstance(instanceName, (PerformanceCountersPerDatabaseInstance)totalInstance));
 }
 // Token: 0x06007855 RID: 30805 RVA: 0x0018DEC6 File Offset: 0x0018C0C6
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new GlsProcessPerformanceCountersInstance(instanceName, (GlsProcessPerformanceCountersInstance)totalInstance));
 }
Beispiel #10
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new MSExchangeTenantMonitoringInstance(instanceName, (MSExchangeTenantMonitoringInstance)totalInstance));
 }
Beispiel #11
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new MailboxLoadBalanceMultiInstancePerformanceCountersInstance(instanceName, (MailboxLoadBalanceMultiInstancePerformanceCountersInstance)totalInstance));
 }
Beispiel #12
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new ThrottlingServiceClientPerformanceCountersInstance(instanceName, (ThrottlingServiceClientPerformanceCountersInstance)totalInstance));
 }
Beispiel #13
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new MSExchangeResourceLoadInstance(instanceName, (MSExchangeResourceLoadInstance)totalInstance));
 }
 // Token: 0x06000032 RID: 50 RVA: 0x00004B9F File Offset: 0x00002D9F
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new TransportServerAlivePerfCountersInstance(instanceName, (TransportServerAlivePerfCountersInstance)totalInstance));
 }
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new MSExchangeStoreDriverDeliveryAgentInstance(instanceName, (MSExchangeStoreDriverDeliveryAgentInstance)totalInstance));
 }
Beispiel #16
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new EhfPerfCountersInstance(instanceName, (EhfPerfCountersInstance)totalInstance));
 }
Beispiel #17
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new IsMemberOfResolverPerfCountersInstance(instanceName, (IsMemberOfResolverPerfCountersInstance)totalInstance));
 }
Beispiel #18
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new HttpProxyCountersInstance(instanceName, (HttpProxyCountersInstance)totalInstance));
 }
Beispiel #19
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new MailboxReplicationServicePerMdbPerformanceCountersInstance(instanceName, (MailboxReplicationServicePerMdbPerformanceCountersInstance)totalInstance));
 }
Beispiel #20
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new ExchangeTopologyPerformanceCountersInstance(instanceName, (ExchangeTopologyPerformanceCountersInstance)totalInstance));
 }
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new AutodiscoverDatacenterPerformanceCountersInstance(instanceName, (AutodiscoverDatacenterPerformanceCountersInstance)totalInstance));
 }
 // Token: 0x06000142 RID: 322 RVA: 0x00007F02 File Offset: 0x00006102
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new PswshttpRequestPerformanceCountersInstance(instanceName, (PswshttpRequestPerformanceCountersInstance)totalInstance));
 }
Beispiel #23
0
 // Token: 0x06007880 RID: 30848 RVA: 0x0018F06E File Offset: 0x0018D26E
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new MSExchangeProvisioningCacheInstance(instanceName, (MSExchangeProvisioningCacheInstance)totalInstance));
 }
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new ConfigurationCachePerfCountersInstance(instanceName, (ConfigurationCachePerfCountersInstance)totalInstance));
 }
Beispiel #25
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new MiddleTierStoragePerformanceCountersInstance(instanceName, (MiddleTierStoragePerformanceCountersInstance)totalInstance));
 }
 // Token: 0x0600245E RID: 9310 RVA: 0x000AA9BC File Offset: 0x000A8BBC
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new NetworkManagerPerfmonInstance(instanceName, (NetworkManagerPerfmonInstance)totalInstance));
 }
 // Token: 0x0600247E RID: 9342 RVA: 0x000AC4AA File Offset: 0x000AA6AA
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new ReplicaSeederPerfmonInstance(instanceName, (ReplicaSeederPerfmonInstance)totalInstance));
 }
Beispiel #28
0
 // Token: 0x0600244D RID: 9293 RVA: 0x000A9B0E File Offset: 0x000A7D0E
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new ActiveManagerDagNamePerfmonInstance(instanceName, (ActiveManagerDagNamePerfmonInstance)totalInstance));
 }
Beispiel #29
0
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new MSExchangeStoreDriverSubmissionDatabaseInstance(instanceName, (MSExchangeStoreDriverSubmissionDatabaseInstance)totalInstance));
 }
Beispiel #30
0
 // Token: 0x060008B3 RID: 2227 RVA: 0x0003B79E File Offset: 0x0003999E
 private static PerformanceCounterInstance CreateInstance(string instanceName, PerformanceCounterInstance totalInstance)
 {
     return(new CalendarSyncPerformanceCountersInstance(instanceName, (CalendarSyncPerformanceCountersInstance)totalInstance));
 }