public void AddNewMethod(MeasuredMethod method) { if (_stackMethods.Count == 0) { Methods.Add(method); } else { _stackMethods.Peek().Methods.Add(method); } _stackMethods.Push(method); }
public MeasuredThread(int id, MethodBase method) { Id = id; var newMethod = new MeasuredMethod(method); if (_stackMethods.Count == 0) { Methods.Add(newMethod); } else { _stackMethods.Peek().Methods.Add(newMethod); } _stackMethods.Push(newMethod); }