Example #1
0
        protected static void End(string operation)
        {
            OperationPerformance value = GetPerformance(operation);

            value.AddMeasure();
            Log.Info("{0} count {1}", operation, value.Count);
            Log.Info("-- TIME(ms)  last {0}, prev {1}, trend {2:0.00}, min {3}, max {4}, 50% {5}, 90% {6}", value.CpuLast.ToThousandsSeparated(), value.CpuPrevious.ToThousandsSeparated(), value.CpuTrend, value.CpuMin.ToThousandsSeparated(), value.CpuMax.ToThousandsSeparated(), value.CpuPercentile(50).ToThousandsSeparated(), value.CpuPercentile(90).ToThousandsSeparated());
            Log.Info("-- GC(bytes) last {0}, prev {1}, trend {2:0.00}, min {3}, max {4}, 50% {5}, 90% {6}", value.GcLast.ToThousandsSeparated(), value.GcPrevious.ToThousandsSeparated(), value.GcTrend, value.GcMin.ToThousandsSeparated(), value.GcMax.ToThousandsSeparated(), value.GcPercentile(50).ToThousandsSeparated(), value.GcPercentile(90).ToThousandsSeparated());
            Log.Info("-- WS(bytes) last {0}, prev {1}, trend {2:0.00}, min {3}, max {4}, 50% {5}, 90% {6}", value.WsLast.ToThousandsSeparated(), value.WsPrevious.ToThousandsSeparated(), value.WsTrend, value.WsMin.ToThousandsSeparated(), value.WsMax.ToThousandsSeparated(), value.WsPercentile(50).ToThousandsSeparated(), value.WsPercentile(90).ToThousandsSeparated());
        }