}
loadtime += System.currentTimeMillis();
- if (Desktop.instance != null)
- {
- Desktop.instance.stopLoading();
- }
// System.gc();
memused = memused - (rt.maxMemory() - rt.totalMemory() + rt.freeMemory()); // difference in free memory after load
- if (alignFrame != null)
+ if (Desktop.desktop != null && Desktop.desktop.isShowMemoryUsage())
{
- if (Desktop.desktop != null && Desktop.desktop.isShowMemoryUsage())
+ if (alignFrame != null)
{
AlignmentI al = alignFrame.getViewport().getAlignment();
+ (loadtime / 1000.0) + "s, took an additional "
+ (1.0 * memused / (1024.0 * 1024.0)) + " MB ("
+ al.getHeight() + " seqs by " + al.getWidth() + " cols)");
+ } else {
+ // report that we didn't load anything probably due to an out of memory error
+ System.out.println("Failed to load '"+title+"' in "
+ + (loadtime / 1000.0) + "s, took an additional "
+ + (1.0 * memused / (1024.0 * 1024.0)) + " MB (alignment is null)");
}
}
+ // remove the visual delay indicator
+ if (Desktop.instance != null)
+ {
+ Desktop.instance.stopLoading();
+ }
}