public OverallResults() { ExperimentsCount = 0; ExperimentsFailed = 0; RecursiveDurationStatistics = new DurationStatistics(); LineairDurationStatistics = new DurationStatistics(); }
public override void postRender() { if (DurationStatistics.collectStatistics && isLogInfoEnabled) { pixelStatistics.end(); const int pixelsGrouping = 1000; int n = pixel.NumberPixels / pixelsGrouping; if (!pixelsStatistics.ContainsKey(n)) { pixelsStatistics[n] = new DurationStatistics(string.Format("Pixels count={0:D}", n * pixelsGrouping)); } if (isLogTraceEnabled) { log.trace(string.Format("Pixels statistics count={0:D}, real count={1:D}", n * pixelsGrouping, pixel.NumberPixels)); } pixelsStatistics[n].add(pixelStatistics); } if (rendererWriter != null) { rendererWriter.flush(); } base.postRender(); statisticsFilters(pixel.NumberPixels); }
public static void exit() { if (instance == null) { return; } if (log.InfoEnabled && DurationStatistics.collectStatistics) { DurationStatistics[] statistics = new DurationStatistics[instance.compiledRenderers.Count]; int n = 0; foreach (RendererTemplate renderer in instance.compiledRenderers.Values) { statistics[n++] = renderer.Statistics; } Array.Sort(statistics, 0, n); for (int i = 0; i < n; i++) { Console.WriteLine(statistics[i]); } } }