public void StartTrace() { if (CurrentMethodTracer != null) { //CurrentMethodTracer.StopTrace(); MethodTracers.Push(CurrentMethodTracer); } CurrentMethodTracer = new MethodTracer(); CurrentMethodTracer.StartTrace(); }
public void StartTrace() { MethodTracer methodTracer = new MethodTracer(); if (sUnstoppedMethodTracers.Count > 0) { MethodTracer lastUnstoppedMethodTracer = sUnstoppedMethodTracers.Peek(); lastUnstoppedMethodTracer.lInnerMethodTracers.Add(methodTracer); } sUnstoppedMethodTracers.Push(methodTracer); methodTracer.StartTrace(); }