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 210849

Summary: [72cat] Profiling does not work if method execution takes short amount of time
Product: profiler Reporter: crazyjavahacking
Component: IdeAssignee: issues@profiler <issues>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P2    
Version: 7.2   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: DEFECT Exception Reporter:

Description crazyjavahacking 2012-04-07 07:21:30 UTC
For both Java SE and Maven Java projects, the profiling does not work if the method execution (overall program execution) takes too short amount of time (on my machine less than 1 or 1.5 seconds).

To reproduce, just create a new Java SE or Maven Java project and do the profiling on template main() methods. I starts collecting results when you will add Thread.sleep(1000/*1500*/);


JDK 7u3, NetBeans Dev 201204050400
Comment 1 J Bachorik 2012-04-08 08:28:12 UTC
Please, provide more details like the profiling configuration (CPU/Memory, sampled vs. instrumented etc.)
Comment 2 crazyjavahacking 2012-04-08 10:08:09 UTC
I just everything by default:

CPU profiling & Analyze performance Quick (Sampled)