|Re: dynamically loaded classes missing from results [message #77374 is a reply to message #77358]
||Thu, 13 July 2006 06:33
| Asaf Yaffe
Registered: July 2009
Scott A. Hendrickson wrote:|
> When I profile my application, classes loaded dynamically (using a
> Class.forName, and then a using the getConstructor and newInstance) are
> not appearing in the results. I'm pretty sure that they are not being
> filtered out, and classes that are in the same package as the
> dynamically loaded classes are appearing.
> Is it possible that there is a setting or a special way of loading
> classes that I need to use?
> Any help is greatly appreciated!
> Thank you,
> -- Scott
Can you give us more information about the environment you use (Eclipse
version, TPTP version, JRE version) and the nature of your application?
I have a small test application that uses reflection and the methods I
execute through reflection appear in the profiling results, so I can't
really reproduce the behavior you describe.
If you are using a Java 5 (1.5) VM, you may want to check the new JVMTI
Profiler available as a Tech Preview in TPTP 4.2 (binaries and
documentation are available on the TPTP 4.2 download page). This new
profiler does not rely on VM generated events to track method entry and
exit, but modifies the byte code of all running classes (including
"reflected" classes) in order to do this tracking. Therefore, it may
work better with code that heavily uses reflection.
Eclipse TPTP Committer, Platform Project (JVMTI Profiler)
Powered by FUDForum
. Page generated in 0.14408 seconds