public override void Run() { try { var format = new SimpleDateFormat("s", _locale); var dateTime = DateTimeEx.GetInstance(_timeZone, _clock.Time()); var dateTimeString = format.Format(dateTime); _writer.Write(dateTimeString); _writer.Write(' '); for (var i = 0; i < CONSOLE_WIDTH - dateTimeString.Length - 1; i++) { _writer.Write('='); } _writer.WriteLine(); foreach (var entry in MetricsRegistry.GroupedMetrics(_predicate)) { _writer.Write(entry.Key); _writer.WriteLine(':'); foreach (var subEntry in entry.Value) { _writer.Write(" "); _writer.Write(subEntry.Key.Name); _writer.WriteLine(':'); subEntry.Value.ProcessWith(this, subEntry.Key, _writer); _writer.WriteLine(); } _writer.WriteLine(); } _writer.WriteLine(); _writer.Flush(); } catch (Exception e) { _writer.WriteLine(e.StackTrace); } }