Modified heap profiling to only dump at end of program, not after every generation.