This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
jdk 1.6.0, trunk profiler 060911 Steps to reproduce: 1. create Anagram Game sample project, start memory liveness profiling there 2. wait until the project will start, minimize the project's window 3. reset results 4. move mouse cursor over the project's icon - to display its tooltip (on linux) Live Results window will show a few classes. 5. invoke Take snapshot - it will take empty snapshot 6. switch back to Live results window 7. the Live Results window will be empty I don't know what is the desired behaviour. Can a taken snapshot be empty when there were some live results before? Or can be memory results cleared after e.g. garbage collection?
This behaviour is quite expectable. The mouse-over event generates just some short-living objects (within the scope of handler method). Taking snapshot in "liveness profiling" then means taking snapshot of the live references only. The references created within the handler method scope can't be called live by the time of taking snapshot (their scope is not valid any more) thus not appearing in snapshot window.
I thought the memory live results contain 'allocated objects' column which is always increasing. So the short-living objects should be mentioned in live results with zeros in live objects and live bytes but non-zero value in allocated objects column.
verified