Esempio n. 1
0
        /// <summary>
        /// 开始一段跟踪
        /// </summary>
        public void End()
        {
            if (Cr == null)
                throw new Exception("错误的调用,未使用BEGIN()");
            _trackinfos.Add(Cr.End());

            Cr = null;
        }
Esempio n. 2
0
 /// <summary>
 /// 开始一段跟踪
 /// </summary>
 /// <param name="discript"></param>
 public void Begin(string discript)
 {
     Cr = new CodeRunTime(discript);
 }