Permalink
Browse files

Removed some debugging code

  • Loading branch information...
1 parent d769d9c commit 874d8e472ab2989a1b0c9ddca29356b4ddd74bde @salerth committed Feb 7, 2012
Showing with 0 additions and 12 deletions.
  1. +0 −12 parsers/LogTailParser.cs
View
12 parsers/LogTailParser.cs
@@ -109,11 +109,6 @@ public IEnumerable<Metric> GetMetrics()
private IEnumerable<Metric> ReadTail(string file, IEnumerable<LogConfigurationElement> logsForFile)
{
- var sw = new Stopwatch();
- sw.Start();
- long lines = 0;
-
-
var rawValues = new ConcurrentDictionary<LogStatConfigurationElement, ConcurrentBag<Metric>>();
var metrics = new List<Metric>();
@@ -157,7 +152,6 @@ private IEnumerable<Metric> ReadTail(string file, IEnumerable<LogConfigurationEl
while (reader.Peek() != -1)
{
var line = reader.ReadLine();
- lines++;
//Update the lastPosition counter before we try parse so any failures do not repeat the same line
lastPosition = reader.BaseStream.Position;
@@ -217,12 +211,6 @@ into metricGroup
}
}
-
- sw.Stop();
- Console.WriteLine("Finished {0}", file);
- Console.WriteLine("New metrics added: {0}", metrics.Count);
- Console.WriteLine("{0} lines read in {1}ms, {2:F2}ms/line", lines, sw.ElapsedMilliseconds,
- (float)sw.ElapsedMilliseconds / (float)lines);
return metrics;
}

0 comments on commit 874d8e4

Please sign in to comment.