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 166510 - CPU Usage Details are confusing if Sun Studio is used
Summary: CPU Usage Details are confusing if Sun Studio is used
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Profile (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 20:54 UTC by Leonid Lenyashin
Modified: 2009-06-11 08:37 UTC (History)
3 users (show)

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 Leonid Lenyashin 2009-06-03 20:54:38 UTC
In CPU details one function is listed many times if a hot spot is reported in different lines. While this approach is
correct for memory allocation and thread locks, for CPU consumption it is misleading. It makes list just longer, harder
to read and may produce a wrong impression about what function is the beast. The line distribution may be useful, but as
a secondary information and better to be placed as annotation in editor window (in the next release).
For now the CPU details are way too have even for Pi sample...
Comment 1 Leonid Lenyashin 2009-06-04 02:38:15 UTC
It is also confusing that functions are sorted by inclusive time. Right criteria is exclusive time, otherwise main is
always on top. So please swap Inclusive and Exclusive and sort it in descending order.
Any reaction?
Comment 2 Maria Tishkova 2009-06-05 11:36:22 UTC
Leonid, as I understand we should consider this issue as a showstopper a it confuses users, right?
I will fix and ask QE to verify, if everything will be OK we will start a showstoppper process to put fix into RC3
Comment 3 Maria Tishkova 2009-06-05 12:48:15 UTC
Leonid, also I would like to notice that if I will use "functions" not "lines" command to get information about CPU I
will see function names without file names and line numbers, is it acceptable?
Comment 4 Maria Tishkova 2009-06-05 15:46:36 UTC
fixed in cnd-main, see  http://hg.netbeans.org/cnd-main/rev/b51e3ddac582
Comment 5 Leonid Lenyashin 2009-06-08 12:45:41 UTC
This fix looks fine to me.
Comment 6 Leonid Lenyashin 2009-06-08 13:27:09 UTC
Since a user misled by current representation of data in our main feature for this release I promote the bug to P1 and
consider as showstopper. Please proceed with the fix.
Comment 7 Maria Tishkova 2009-06-08 13:45:03 UTC
Alexander, please verify the fix in the trunk

Alexey, please view the fix
Comment 8 Alexey Vladykin 2009-06-08 15:45:22 UTC
I have reviewed the fix and have no objections.
Comment 9 Alexander Pepin 2009-06-08 16:16:08 UTC
verified in dev build
please integrate into release67 branch
Comment 10 Maria Tishkova 2009-06-08 16:24:41 UTC
fixed in release67 branch http://hg.netbeans.org/release67/rev/83d06475e9f9
Comment 11 Alexander Pepin 2009-06-10 10:46:46 UTC
verified in rc3 build 2009-06-10_00-01-07
Comment 12 Quality Engineering 2009-06-11 08:37:08 UTC
Integrated into 'main-golden', will be available in build *200906110201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b51e3ddac582
User: Maria Tishkova <mromashova@netbeans.org>
Log: fixed IZ#166510 CPU Usage Details are confusing if Sun Studio is used
1) "functiions" command is used instead of "lines" as a result we have table with function names only, no information about source file name and line number is presented
2) the first column after the  function name is Excl. User CPU Time (changed for both  SS and DTrace  data providers) and this column is used for desc ordering