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 231156 - Profiling times don't add up
Summary: Profiling times don't add up
Status: NEW
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Hurka
Depends on:
Reported: 2013-06-12 14:44 UTC by Til
Modified: 2013-06-28 20:29 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Example program (1.81 KB, application/octet-stream)
2013-06-12 14:44 UTC, Til
Screenshot when profiling all classes (47.29 KB, image/png)
2013-06-12 14:45 UTC, Til
Screenshot when profiling only project classes (16.67 KB, image/png)
2013-06-12 14:46 UTC, Til

Note You need to log in before you can comment on or make changes to this bug.
Description Til 2013-06-12 14:44:32 UTC
Created attachment 135702 [details]
Example program

The method timing in the profiling snapshot view seem to be inconsistent at times. This is related to the discussion in the forum:

However the problem here is slightly different.
Profiling the attached program with CPU profiler and "profile all classes" results time "0.00ms" for all methods of the example class, including the main() method.
The self-timings are much higher, they seem to be a total-time of the Java methods that are shown.

For comparison, profiling with "Profile only project classes" results in a much more expected result.

I will try to attach screenshots, but there seems to be only one attachment allowed...

Note: At first sight, it seems that the profiler gets confused by the "profile all classes". However I suspect that this is a deeper problem (or there may be a second one), because I get very similar issues when profiling my own application, even when profiling only project classes.
Comment 1 Til 2013-06-12 14:45:32 UTC
Created attachment 135703 [details]
Screenshot when profiling all classes
Comment 2 Til 2013-06-12 14:46:02 UTC
Created attachment 135704 [details]
Screenshot when profiling only project classes