Пример #1
0
        private void ProcessLeak(XmlNode leakNode)
        {
            MemoryLeak leak = new MemoryLeak(leakNode.Attributes);

            results.AddLeak(leak);

            foreach (XmlNode child in leakNode.ChildNodes)
            {
                if (child.Name == "stack-frame")
                {
                    leak.AddBacktraceFrame(ProcessStackFrame(child));
                }
            }
        }
 public void AddLeak(MemoryLeak leak)
 {
     leaks.Add(leak);
 }
        private void ProcessLeak(XmlNode leakNode)
        {
            MemoryLeak leak = new MemoryLeak(leakNode.Attributes);
            results.AddLeak(leak);

            foreach (XmlNode child in leakNode.ChildNodes)
            {
                if (child.Name == "stack-frame")
                    leak.AddBacktraceFrame(ProcessStackFrame(child));
            }
        }
 public void AddLeak(MemoryLeak leak)
 {
     leaks.Add(leak);
 }