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 72599 - [tests] Strange results of code region on windows
Summary: [tests] Strange results of code region on windows
Status: VERIFIED WONTFIX
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-13 09:54 UTC by ehucka
Modified: 2007-01-12 16:09 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 ehucka 2006-02-13 09:54:54 UTC
Steps to reproduction:

1. create a method
public void test() {
   long startTime = System.currentTimeMillis();
   while ((System.currentTimeMillis() - startTime) < 20) ;
}
and call it about 100 times
2. set line 2 and 3 as code region (body of the method)
3. invoke code region profiling
Results: it measures cca 60 ms for the first half of invocations and 30 ms for
the second half of invocations

The expected results are 20 ms for most of measurements. It works correctly on
other platforms.
Comment 1 ehucka 2006-02-13 10:11:00 UTC
I forgot the method is called from main thread and from another thread too. The
slower measurements (60 ms) are from the another thread.
Comment 2 Jiri Sedlacek 2007-01-08 14:23:29 UTC
Code Fragment profiling was removed from 6.0.
Comment 3 ehucka 2007-01-12 16:09:51 UTC
verified