Exemplo n.º 1
0
        public ProcessPerformanceCounter(Process process, PerformanceCounterInfo[] counters, bool collectThreadPoolInfo)
        {
            m_Process = process;
            m_CounterDefinitions = counters;
            m_CollectThreadPoolInfo = collectThreadPoolInfo;

            //Windows .Net, to avoid same name process issue
            if (!NRackEnv.IsMono)
                RegisterSameNameProcesses(process);

            SetupPerformanceCounters();
        }
Exemplo n.º 2
0
 public ProcessPerformanceCounter(Process process, PerformanceCounterInfo[] counters)
     : this(process, counters, true)
 {
 }