System.out.println("TestApplication: Setting Iterations to "
+ iterations.getToken());
}
Manager manager = new Manager(toplevel.workspace(), "TestApplication");
toplevel.setManager(manager);
toplevel.addChangeListener(this);
String modelName = toplevel.getName();
long startTime = System.currentTimeMillis();
long totalMemory1 = runtime.totalMemory() / 1024;
long freeMemory1 = runtime.freeMemory() / 1024;
System.out.println("Spent " + (startTime - _parseStartTime)
+ " ms. creating the model.");
System.out.println(modelName + ": Stats before execution: "
+ Manager.timeAndMemory(startTime, totalMemory1, freeMemory1));
// Second, we run and print memory stats.
manager.execute();
long totalMemory2 = runtime.totalMemory() / 1024;
long freeMemory2 = runtime.freeMemory() / 1024;
String standardStats = Manager.timeAndMemory(startTime, totalMemory2,
freeMemory2);