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 54944 - Profiler calibration is done in AWT thread
Summary: Profiler calibration is done in AWT thread
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: iformanek
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2005-02-14 14:48 UTC by Antonin Nebuzelsky
Modified: 2007-02-12 22:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Event Queue stack trace (3.55 KB, text/plain)
2005-02-14 14:57 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2005-02-14 14:48:10 UTC
Calibration task is blocking AWT thread, see the
attached stack trace. Should be done in a worker
thread, ideally with progress bar indication or at
least hour-glass cursor.
Comment 1 Antonin Nebuzelsky 2005-02-14 14:57:08 UTC
Created attachment 20333 [details]
Event Queue stack trace
Comment 2 mishadmitriev 2005-02-14 18:50:13 UTC
I think this is an arguable defect. The main argument against it is 
that when calibration is in progress, we need to have as little other 
activity going on the machine, as possible. If AWT thread is not 
blocked, it/user may do something and consume CPU cycles, which will 
distort the calibration results. On the other hand, calibration 
usually happens just once, when the profiler is installed, and takes 
at most 5-10 seconds. So this is not at all a recurring annoying 
issue. So I would suggest to consider this a non-issue, unless you 
give us more compelling arguments.
Comment 3 Antonin Nebuzelsky 2005-02-15 09:25:32 UTC
Frozen UI, even if it is "only" for 10 seconds and just once, will
give the users bad impression. Especially if it is at the beginning of
their work with the IDE.

If you leave a modal dialog open saying something like "Calibrating...
Please wait and do not do anything with your computer until
finished.", change the cursor to hour-glass shape and move the
calibration to a worker thread, UI responsiveness will be OK and the
users will not try to do anything to distort the results.

So, I don't see a reason not to fix this.
Comment 4 iformanek 2005-02-16 09:52:22 UTC
Self assign for M6
Comment 5 iformanek 2005-02-17 15:48:54 UTC
Done in M6
Comment 6 ehucka 2006-10-09 12:09:22 UTC
Verification of old issues.
Comment 7 Alexander Kouznetsov 2007-02-12 22:07:29 UTC
Closing old issues.