public static void Start(object target = null) { if (CPUCount.CounterList == null) { CPUCount.CounterList = new List <FuncInfo>(); } FuncInfo funcInfo = CPUPerf.getFuncInfo(target); CPUCount.CounterList.Add(funcInfo); if (++funcInfo.recCnt == 1) { funcInfo.lastRecord = Stopwatch.GetTimestamp(); } }
public static void Count(object target = null) { FuncInfo funcInfo = CPUPerf.getFuncInfo(target); funcInfo.callCount++; }