/// <summary> /// Analyzes the data and returns a reporting action /// </summary> /// <param name="options">The benchmark options</param> /// <returns>An action that will write the data to the reports. This is then no longer measured</returns> public override Action AnalyzeAndReport(BenchmarkOptions options) { TObject obj; if (incrementalValue != null) { obj = incrementalValue.Value; } else { obj = functionCompiled(); } return(() => Benchmark.Report(Name, "Value", obj, options)); }
/// <summary> /// Analyzes the data and returns a reporting action /// </summary> /// <param name="options">The benchmark options</param> /// <returns>An action that will write the data to the reports. This is then no longer measured</returns> public override Action AnalyzeAndReport(BenchmarkOptions options) { var count = currentPattern.Count(); return(() => Benchmark.Report(Name, "Count", count, options)); }