/// <summary> /// 开始一段跟踪 /// </summary> public void End() { if (Cr == null) throw new Exception("错误的调用,未使用BEGIN()"); _trackinfos.Add(Cr.End()); Cr = null; }
/// <summary> /// 开始一段跟踪 /// </summary> /// <param name="discript"></param> public void Begin(string discript) { Cr = new CodeRunTime(discript); }