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.

Bug 50400 - Profiler does not work over invoke (Reflection)
Summary: Profiler does not work over invoke (Reflection)
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: mishadmitriev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-14 08:46 UTC by tboerkel
Modified: 2007-02-20 18:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tboerkel 2004-10-14 08:46:52 UTC
If I profile a method and this method calls
another with invoke (over Reflection), then I do
not see this in the profiler call graph.

Using profiler M2, JDK 1.4.2_05.
Comment 1 mishadmitriev 2004-10-22 02:24:57 UTC
It looks like the problem is not due to methods called via 
reflection, but rather due to some native calls that in turn call 
Java methods again. Our call graph revelation algorithm cannot 
determine (so far at least) what methods can be called by a native 
methods (because native code is much harder to parse/analyze than 
Java bytecodes), so it misses such calls, or registers only them only 
for those methods that have been instrumented for other reason. Total 
instrumentation scheme solves this problem.

I asked the user to confirm/comment on the above theory, but have not
received a reply yet.
Comment 2 mishadmitriev 2004-10-29 04:06:03 UTC
Fixed, code will become available in Milestone 3 release due in the 
beginning of November.

The issue turned out to be related with reflection indeed. Thanks for 
finally providing a nice test case Thomas!
Comment 3 ehucka 2006-10-09 12:11:17 UTC
Verification of old issues.
Comment 4 Alexander Kouznetsov 2007-02-12 22:55:11 UTC
Closing old issues.
Comment 5 Alexander Kouznetsov 2007-02-20 18:20:31 UTC
Reverting to the original Target Milestone value changed by mistake. Sorry for
inconvenience.