Invoke garbage collection

This commit is contained in:
2022-02-20 20:47:12 -06:00
parent 63ef6aa7a0
commit 9b18fac74f
2 changed files with 4 additions and 0 deletions

View File

@@ -319,6 +319,7 @@ public class UserInterface {
assert filename != null; assert filename != null;
CellFileWriter writer = new CellFileWriter(filename, sample); CellFileWriter writer = new CellFileWriter(filename, sample);
writer.writeCellsToFile(); writer.writeCellsToFile();
System.gc();
} }
// //for calling from command line // //for calling from command line
@@ -465,6 +466,7 @@ public class UserInterface {
System.out.println("Writing Sample Plate to file"); System.out.println("Writing Sample Plate to file");
writer.writePlateFile(); writer.writePlateFile();
System.out.println("Sample Plate written to file: " + filename); System.out.println("Sample Plate written to file: " + filename);
System.gc();
} }
} }
@@ -513,6 +515,7 @@ public class UserInterface {
System.out.println("File I/O time is not included in results."); System.out.println("File I/O time is not included in results.");
dataWriter.writeDataToFile(); dataWriter.writeDataToFile();
System.out.println("Graph and Data file written to: " + filename); System.out.println("Graph and Data file written to: " + filename);
System.gc();
} }
} }
@@ -567,6 +570,7 @@ public class UserInterface {
System.out.println("Writing results to file"); System.out.println("Writing results to file");
writer.writeResultsToFile(); writer.writeResultsToFile();
System.out.println("Results written to file: " + filename); System.out.println("Results written to file: " + filename);
System.gc();
} }
/////// ///////