This commit is contained in:
rusefillc 2023-11-13 09:59:18 -05:00
parent 8dc7906f00
commit 908984c9dc
2 changed files with 10 additions and 0 deletions

View File

@ -104,6 +104,7 @@ public class ByteRateOfChange {
public String toString() {
return "ByteStatistics{" +
"counter=" + uniqueValues.size() +
", totalTransitions=" + totalTransitions +
", key=" + key +
'}';
}
@ -189,5 +190,12 @@ public class ByteRateOfChange {
return statistics;
}
public void save(String file) throws IOException {
Writer w = new FileWriter(file);
for (Map.Entry<ByteId, ByteStatistics> e : statistics.entrySet()) {
w.append(e.getKey() + " " + e.getValue() + "\r\n");
}
}
}
}

View File

@ -105,6 +105,8 @@ public class ByteRateOfChangeReports {
CanToMegaLogViewer.createMegaLogViewer(reportDestinationFolder, logFileContent, simpleFileName);
ByteRateOfChange.TraceReport report = ByteRateOfChange.process(reportDestinationFolder, simpleFileName, logFileContent);
report.save("temp.txt");
reports.add(report);
}, fileNameSuffix);