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.
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.
I forgot the method is called from main thread and from another thread too. The slower measurements (60 ms) are from the another thread.
Code Fragment profiling was removed from 6.0.
verified