/// <summary> /// Collects statistics relating to this indexing node, for use /// in experimentation. /// </summary> /// <param name="stats">The statistics to add to</param> internal override void CollectStats(IndexStatistics stats) { base.CollectStats(stats); if (m_Children != null) { foreach (Node n in m_Children) { n.CollectStats(stats); } } }
/// <summary> /// Collects statistics relating to this indexing node, for use /// in experimentation. /// </summary> /// <param name="stats">The statistics to add to</param> internal virtual void CollectStats(IndexStatistics stats) { stats.Add(this); }
/// <summary> /// Collects statistics relating to this indexing node, for use /// in experimentation. /// </summary> /// <param name="stats">The statistics to add to</param> internal override void CollectStats(IndexStatistics stats) { base.CollectStats(stats); if (m_Children!=null) { foreach (Node n in m_Children) n.CollectStats(stats); } }
/// <summary> /// Dumps out debug statistics relating to this index, creating /// a file called <c>C:\Temp\indexStats.txt</c> /// </summary> public void DumpStats() { using (StreamWriter w = File.CreateText(@"C:\Temp\indexStats.txt")) { PointIndexStatistics statPoints = new PointIndexStatistics(); w.WriteLine("Points"); m_Points.CollectStats(statPoints); statPoints.Dump(w); IndexStatistics statLines = new IndexStatistics(); w.WriteLine(); w.WriteLine("Lines"); m_Lines.CollectStats(statLines); statLines.Dump(w); IndexStatistics statText = new IndexStatistics(); w.WriteLine(); w.WriteLine("Text"); m_Text.CollectStats(statText); statText.Dump(w); IndexStatistics statPol = new IndexStatistics(); w.WriteLine(); w.WriteLine("Polygons"); m_Polygons.CollectStats(statPol); statPol.Dump(w); } }