public static void Clean() { if (single != null) { single = null; } }
public static PerfStatType GetInstance() { if (single == null) { single = new PerfStatType(); } return(single); }
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); }