Ejemplo n.º 1
0
 public static void Clean()
 {
     if (single != null)
     {
         single = null;
     }
 }
Ejemplo n.º 2
0
 public static PerfStatType GetInstance()
 {
     if (single == null)
     {
         single = new PerfStatType();
     }
     return(single);
 }
Ejemplo n.º 3
0
        public PerfStat(int threadID)
        {
            PerfStatType regStatType = PerfStatType.GetInstance();

            statsType = regStatType.GetStatType();
            StatisticsFactory factory = StatisticsFactory.GetExistingInstance();
            string            buf     = String.Format("ThreadId-{0}", threadID);

            testStat = factory.CreateStatistics(statsType, buf);
        }