Beispiel #1
0
        internal void StopTrace()
        {
            if (MethodsInThread.Count == 0)
            {
                throw new InvalidOperationException("Can't stop tracing method that doesn't exist");
            }
            MethodTracer popedMethod = MethodsInThread.Pop();

            popedMethod.StopTrace();
        }
Beispiel #2
0
 private void AddMethod(MethodTracer method)
 {
     if (MethodsInThread.Count > 0)
     {
         MethodsInThread.Peek().AddInnerMethod(method);
     }
     else
     {
         TracedMethods.Add(method);
     }
     MethodsInThread.Push(method);
 }