mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Statistics Collection / Writing Overhaul (#35)
* Add DatStatistics class * Add isDirectory setting * Add CalculateStatistics method (nw) * Add separate stats writing * Use new methods * Rename Write -> WriteIndividual * Naive implementation of new writing (nw) * Remove unncessary calls * Make writing more DatFile-like * Add console flag to constructor * Remove unused stream constructors * Move to local writers * Remove inherent filename * Fix invocation * Use SeparatedValueWriter * Fix final directory stats output * Use XmlTextWriter for HTML * Don't output separator on last stat output * Remove now-completed TODOs * Remove unused using
This commit is contained in:
@@ -33,7 +33,14 @@ namespace RombaSharp.Features
|
||||
Inputs = new List<string> { Path.GetFullPath(_dats) };
|
||||
|
||||
// Now output the stats for all inputs
|
||||
Statistics.OutputStats(Inputs, "rombasharp-datstats", null /* outDir */, true /* single */, true /* baddumpCol */, true /* nodumpCol */, StatReportFormat.Textfile);
|
||||
var statistics = Statistics.CalculateStatistics(Inputs, single: true);
|
||||
Statistics.Write(
|
||||
statistics,
|
||||
"rombasharp-datstats",
|
||||
outDir: null,
|
||||
baddumpCol: true,
|
||||
nodumpCol: true,
|
||||
StatReportFormat.Textfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user