public CProfileNode(String name, CProfileNode parent, BasicProfileManager profileManager) { m_name = name; m_parent = parent; m_profileManager = profileManager; Reset(); }
public CProfileNode Get_Sub_Node(String name) { // Try to find this sub node CProfileNode child = m_child; while (child != null) { if (child.m_name == name) { return(child); } child = child.m_sibling; } // We didn't find it, so add it CProfileNode node = new CProfileNode(name, this, m_profileManager); node.m_sibling = m_child; m_child = node; return(node); }
public BasicProfileManager() { m_root = new CProfileNode("Root", null, this); m_currentNode = m_root; m_stopwatch = new Stopwatch(); }
public BasicProfileIterator(CProfileNode start) { m_currentParent = start; m_currentChild = start.Get_Child(); }