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 101575 - The same method displayed several times in calltree
Summary: The same method displayed several times in calltree
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-18 14:08 UTC by Jiri Sedlacek
Modified: 2007-09-26 09:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
CPU snapshot showing the problem (12.41 KB, application/octet-stream)
2007-04-18 14:09 UTC, Jiri Sedlacek
Details
Snapshot with duplicate Call Tree entries (39.64 KB, application/octet-stream)
2007-07-20 13:58 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2007-04-18 14:08:29 UTC
JDK 1.6, Profiler trunk, NB trunk, Java2Demo project:

1/ Set java2d.demos.Colors.Rotator3D.step(int, int) and 
java2d.demos.Colors.Rotator3D.render(int, int, java.awt.Graphics2D) as root 
methods

2/ Started CPU part of app, profile all classes, switched to Colors tab in 
started Java2Demo app, opened Live Results, kept running for a while

3/ Taken snapshot, Rotator3D.step and Rotator3D.render are present several 
times in AWT-EventQueue-0 thread with exactly the same calltrees, which looks 
like a bug
Comment 1 Jiri Sedlacek 2007-04-18 14:09:08 UTC
Created attachment 41162 [details]
CPU snapshot showing the problem
Comment 2 Alexander Kouznetsov 2007-07-20 13:57:48 UTC
Profiler 1.2 070717
Product Version: NetBeans IDE Dev (Build 200707171200) 
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Reproduced during Test Specification Editor (http://qa.netbeans.org/test-specs.html) profiling with default Analyze
Performance options both on WinXP and Solaris 10. Profiled application was run on JDK 5 and JDK 6. Snapshots were
obtained during profiling and after the application was stopped. In all cases there are many duplicate Call Tree entries
in the snapshots.
Comment 3 Alexander Kouznetsov 2007-07-20 13:58:51 UTC
Created attachment 45436 [details]
Snapshot with duplicate Call Tree entries
Comment 4 J Bachorik 2007-09-26 08:04:15 UTC
this is caused by those method belonging to different categories. and categories are internally represented as nodes in
the CC Tree thus causing those methods being displayed several times.
i'm going to fix the snapshot display logic to handle the categories correctly - for now just omitting the categories
and aggregating the methods from different categories should be enough
Comment 5 J Bachorik 2007-09-26 09:57:43 UTC
fixed