Ejemplo n.º 1
0
        protected override void PrintMinimal(MetricsData item)
        {
            var cr = new CounterReport(item.Context, Log, PrintMode, Decimals);
            var mr = new MeterReport(item.Context, Log, PrintMode, Decimals);
            var tr = new TimerReport(item.Context, Log, PrintMode, Decimals);

            cr.ReportList((IEnumerable <CounterValueSource>)item.Counters);
            tr.ReportList((IEnumerable <TimerValueSource>)item.Timers);
            mr.ReportList((IEnumerable <MeterValueSource>)item.Meters);
        }
Ejemplo n.º 2
0
        protected override void Print(MetricsData item)
        {
            var cr = new CounterReport(item.Context, Log, PrintMode, Decimals);
            var mr = new MeterReport(item.Context, Log, PrintMode, Decimals);
            var tr = new TimerReport(item.Context, Log, PrintMode, Decimals);
            var gr = new GaugeReport(item.Context, Log, PrintMode, Decimals);
            var hr = new HistogramReport(item.Context, Log, PrintMode, Decimals);

            cr.ReportList((IEnumerable <CounterValueSource>)item.Counters);
            tr.ReportList((IEnumerable <TimerValueSource>)item.Timers);
            mr.ReportList((IEnumerable <MeterValueSource>)item.Meters);
            gr.ReportList((IEnumerable <GaugeValueSource>)item.Gauges);
            hr.ReportList((IEnumerable <HistogramValueSource>)item.Histograms);

            ReportList((IEnumerable <MetricsData>)item.ChildMetrics);
        }