import org.apache.fop.messaging.MessageHandler;
public class Fop {
+
+ public static Runtime runtime;
+ public static long startTotal;
+ public static long startFree;
+ public static long startTime;
+ public static long startPCi;
+ public static long endPCi;
+
public static void main(String[] args) {
+ long endtotal, endfree, gctotal, gcfree;
Driver driver;
Boolean bool = null;
+ runtime = Runtime.getRuntime();
+ startTotal = runtime.totalMemory();
+ startFree = runtime.freeMemory();
+ startTime = System.currentTimeMillis();
+
try {
Options.configure(args);
driver = new Driver();
driver.run();
System.out.println("Back from driver.run()");
+ System.out.println("Elapsed time: " +
+ (System.currentTimeMillis() - startTime));
+ endtotal = runtime.totalMemory();
+ System.out.println("Total memory: " + endtotal);
+ System.out.println("Total diff : " + (endtotal - startTotal));
+ endfree = runtime.freeMemory();
+ System.out.println("Free memory: " + endfree);
+ System.out.println("Free diff : " + (endfree - startFree ));
+ System.gc();
+ gctotal = runtime.totalMemory();
+ System.out.println("Total memory: " + gctotal);
+ System.out.println("Total diff : " + (gctotal - startTotal));
+ gcfree = runtime.freeMemory();
+ System.out.println("Free memory: " + gcfree);
+ System.out.println("Free diff : " + (gcfree - startFree ));
+ System.out.println("cg() freed : " + (gcfree - endfree));
+ System.out.println("PC time : " + (endPCi - startPCi));
} catch (FOPException e) {
MessageHandler.errorln("ERROR: " + e.getMessage());