'save'
This commit is contained in:
parent
8dc7906f00
commit
908984c9dc
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue