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(); }
private void AddMethod(MethodTracer method) { if (MethodsInThread.Count > 0) { MethodsInThread.Peek().AddInnerMethod(method); } else { TracedMethods.Add(method); } MethodsInThread.Push(method); }