public void PushNode(TraceTree node) { if (CallStack.Count == 0) { CallTree.Add(node); } else { CallStack.Peek().Children.Add(node); } CallStack.Push(node); node.StartTimer(); }