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 74089 - Default profiling setting for CPU profiling of applets works only with one thread
Summary: Default profiling setting for CPU profiling of applets works only with one th...
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-28 13:27 UTC by ehucka
Modified: 2006-10-23 16:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
applet (3.23 KB, text/plain)
2006-07-24 13:37 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2006-03-28 13:27:45 UTC
It seems that if I invoke performance profiling of an applet with default
settings - entire application, all classes it profiles only init thread of the
applet (a thread calling AppletPanel.run()). So the profiler doesn't measure any
ui action invoked from running applet.
I think there should be measured at least eventdispatch thread too.
Comment 1 Tomas Hurka 2006-06-28 10:04:59 UTC
There is no reason, why other threads are not profiled. Please provide more information, attach applet, 
etc. 
Comment 2 ehucka 2006-07-24 13:36:05 UTC
It is 100% reproducible in profiler dev builds. I cannot reproduce it in
profiler 5.5.

Steps to reproduce:
1. start profiling of attached applet
2. press increase, decrease buttons
3. take snapshot

Result: snapshot does not contain method make called from events dispatching thread
Comment 3 ehucka 2006-07-24 13:37:10 UTC
Created attachment 32142 [details]
applet
Comment 4 J Bachorik 2006-08-08 14:23:53 UTC
I suppose you are using "Entire Application" preset. This preset turns off the
option to profile spawned threads and relies on root methods solely. As you
don't have your event handling methods defined as root methods they are not
instrumented and therefore not reported in snapshots.
We are planning to introduce a more advanced system allowing different project
types to use different profiling defaults (eg. it makes sense to profile spawned
threads for applets, even for entire application as the application is typically
pretty small). 
Comment 5 ehucka 2006-08-08 15:56:51 UTC
ok, but the issue should stay opened until it is not fixed :). You can make it
depends on some enhancement or task.
Comment 6 Jiri Sedlacek 2006-10-18 17:01:12 UTC
Fixed. From now for Profile File & CPU Entire Application all methods from the 
class & its inner classes and anonymous classes are used as root methods.
Comment 7 ehucka 2006-10-19 15:23:29 UTC
verified