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

        }
Exemple #6
0
 public CProfileNode(String name, CProfileNode parent, BasicProfileManager profileManager)
 {
     m_name = name;
     m_parent = parent;
     m_profileManager = profileManager;
     Reset();
 }
Exemple #7
0
 public BasicProfileManager()
 {
     m_root        = new CProfileNode("Root", null, this);
     m_currentNode = m_root;
     m_stopwatch   = new Stopwatch();
 }
Exemple #8
0
 public BasicProfileIterator(CProfileNode start)
 {
     m_currentParent = start;
     m_currentChild  = start.Get_Child();
 }