From: jprocter Date: Tue, 29 Jan 2008 14:43:17 +0000 (+0000) Subject: minor change to output of main method for testing file IO X-Git-Tag: Release_2_4~134 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d8ba2d006875fcdff4726d952e4bc89a249d9399;p=jalview.git minor change to output of main method for testing file IO --- diff --git a/src/jalview/io/AppletFormatAdapter.java b/src/jalview/io/AppletFormatAdapter.java index b37c60e..05de682 100755 --- a/src/jalview/io/AppletFormatAdapter.java +++ b/src/jalview/io/AppletFormatAdapter.java @@ -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");