minor change to output of main method for testing file IO
authorjprocter <Jim Procter>
Tue, 29 Jan 2008 14:43:17 +0000 (14:43 +0000)
committerjprocter <Jim Procter>
Tue, 29 Jan 2008 14:43:17 +0000 (14:43 +0000)
src/jalview/io/AppletFormatAdapter.java

index b37c60e..05de682 100755 (executable)
@@ -413,6 +413,7 @@ public class AppletFormatAdapter
       if (f.exists())
       {
         try {
+          System.out.println("Reading file: "+f);
           AppletFormatAdapter afa = new AppletFormatAdapter();
           Runtime r = Runtime.getRuntime();
           System.gc();
@@ -422,6 +423,12 @@ public class AppletFormatAdapter
           t1 +=System.currentTimeMillis();
           System.gc();
           memf += r.totalMemory()-r.freeMemory();
+          if (al!=null)
+          {
+            System.out.println("Alignment contains "+al.getHeight()+" sequences and "+al.getWidth()+" columns.");
+          } else {
+            System.out.println("Couldn't read alignment");
+          }
           System.out.println("Read took "+(t1/1000.0)+" seconds.");
           System.out.println("Difference between free memory now and before is "+(memf/(1024.0*1024.0)*1.0)+" MB");