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

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