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.
Using the profiler's "Analyze Memory Usage|Record Object Creation| Track every 1 object allocation" to profile my GUI apps, I don't see instances of dynamically allocated objects using something like: MyObj o = (MyOjb) getConstructor().newInstance(). See the attached test case, creating objects of the same class explicitly and dynamically. Additionally I integrated a listener to see the anonymous class instance(s). Result: You'll see two anonymous instances (MyObj$1) but only one main instance (MyObj). Maybe those dynamically generated instances are filed under java.lang.Object (?!), but that's not very useful.
Created attachment 23987 [details] Simple test case using explicit and dynamic object generation.
I am going to investigate right away, thanks for attaching the test app.
Indeed, the profiler does not record instances created dynamically. Both 1.4 and 1.5 (vararg) type creation is not tracked.
*** Issue 62438 has been marked as a duplicate of this issue. ***
Changed to feature for 2.0
Already fixed for NB 6.0 beta1 *** This issue has been marked as a duplicate of 71792 ***
Verified duplicate