Example #1
0
 public CProfileNode(String name, CProfileNode parent, BasicProfileManager profileManager)
 {
     m_name           = name;
     m_parent         = parent;
     m_profileManager = profileManager;
     Reset();
 }
Example #2
0
        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);
        }
Example #3
0
 public BasicProfileManager()
 {
     m_root        = new CProfileNode("Root", null, this);
     m_currentNode = m_root;
     m_stopwatch   = new Stopwatch();
 }
Example #4
0
 public BasicProfileIterator(CProfileNode start)
 {
     m_currentParent = start;
     m_currentChild  = start.Get_Child();
 }