public void WriteReport(string file, PerformanceResult result)
        {
            var settings = new JsonSerializerSettings();
            settings.MissingMemberHandling = MissingMemberHandling.Ignore;
            settings.Formatting = Formatting.Indented;

            File.WriteAllText(file, JsonConvert.SerializeObject(result, settings));
        }
 public void WriteReportToDirectory(string directory, PerformanceResult result)
 {
     WriteReport(Path.Combine(directory, GetReportFileName("report", new Version(result.Version))), result);
 }