
Hi, I notice that for my program, the max. live heap in the heap profile with -b option is around 300MB, wheras with -p option it is only 4K. I have attached my program, which is a solution to n-queens problem. I am not sure if my understanding of max. live heap is correct. The above numebers refer to the maximum unit on the Y axis. Could you please explain. thanks, Saswat

Saswat Anand
I notice that for my program, the max. live heap in the heap profile with -b option is around 300MB, wheras with -p option it is only 4K. I am not sure if my understanding of max. live heap is correct. The above numbers refer to the maximum unit on the Y axis.
Your understanding is correct, but there seems to be a bug in the biographical profiling code. If you re-run the program with -b and also ask for a larger heap (I tried 16Mb), then the -b profile looks identical to the -p profile, with a similar maximum live heap of about 4K. Regards, Malcolm
participants (2)
-
Malcolm Wallace
-
Saswat Anand