public void StartTracingMethod(MethodLog methodLog) { if (_methodStackTrace.Count == 0) { AllMethods.Add(methodLog); } else { _methodStackTrace.Peek().AddNestedMethods(methodLog); } _methodStackTrace.Push(methodLog); }
public void AddNestedMethods(MethodLog methodLog) { NestedMethods.Add(methodLog); }