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 172255 - Fix computation of thread CPU time
Summary: Fix computation of thread CPU time
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 08:42 UTC by Tomas Hurka
Modified: 2009-09-18 22:17 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 Tomas Hurka 2009-09-15 08:42:51 UTC
There are four possible configuration of particular thread state between two samples.
1) Running -> Not Running
2) Running -> Running
3) Not Running -> Running
4) Not Running -> Not Running

Thread CPU time should be incremented for the first two cases. Currently it is incremented for case 2) and 3), which incorrectly adds a fraction of the CPU 
time to every invocation of Object.wait() or Thread.sleep()
Comment 1 Tomas Hurka 2009-09-15 09:29:39 UTC
Fixed in profiler-main
changeset:   145035:9cf5655045e3
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Sep 15 10:22:44 2009 +0200
summary:     bugfix #172255, fix computation of thread CPU time
Comment 2 Quality Engineering 2009-09-18 22:17:54 UTC
Integrated into 'main-golden', will be available in build *200909181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9cf5655045e3
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #172255, fix computation of thread CPU time