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 242309 - CPU Profiler: "Total Time[%]" column shown incorrect data in snapshot comprison file.
Summary: CPU Profiler: "Total Time[%]" column shown incorrect data in snapshot compris...
Status: RESOLVED WORKSFORME
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-25 06:03 UTC by XUNLGUO
Modified: 2014-02-27 11:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshots for issue 4. (54.03 KB, image/png)
2014-02-25 06:03 UTC, XUNLGUO
Details

Note You need to log in before you can comment on or make changes to this bug.
Description XUNLGUO 2014-02-25 06:03:36 UTC
Created attachment 145562 [details]
snapshots for issue 4.

Issue 1: 
Start Netbeans on Non- English locale system.
CPU Profiler on a Jave MEEP Application,
Save the snapshot in XML and HTML format
Open the XML and HTML file on web Browser, Shown incorrect.
This bug caused by encode conflict :
1. XML and HTML file was saved in ANSI encoding
2. Properties encoding/charset was set to UTF-8 in xml and HTML. 


Issue 2: 
CPU Profiler on a Jave MEEP Application,
Save the snapshot in html format
Open the html file, 
you will find there is no time unit in 'Total Time' column.

Issue 3:
CPU Profiler on a Jave MEEP Application,
Save the snapshot in XML format
Open the XML File: 
<?xml version="1.0" encoding="UTF-8"?>
<ExportedView Name="Call Tree" type="tree">
<tree>
  <node>
   <Name>All threads</Name>
   <Parent>none</Parent>
   <Time_Relative>0.00%</Time_Relative>
   <Time>0</Time>
   <Invocations>0</Invocations>
    <node>
     <Name></Name>
     <Parent>All threads</Parent>
     <Time_Relative>100.00%</Time_Relative>
     <Time>20280000</Time>
     <Invocations>1</Invocations>
      <node>

Here Hot Spots for 'All threads' Node should not shown as '0.00%'
I think the expect result should be :

<?xml version="1.0" encoding="UTF-8"?>
<ExportedView Name="Call Tree" type="tree">
<tree>
  <node>
   <Name>All threads</Name>
   <Parent>none</Parent>   
     <Time_Relative>100.00%</Time_Relative>
     <Time>20280000</Time>
     <Invocations>1</Invocations>
      <node>

Issue 4:
1. CPU Profiler on a Jave MEEP Application,
2. Save the snapshot in .nps format
3. Stop the application and close the CPU Profiler editor.
4. CPU Profiler on a Jave MEE Application again,
Compare currently snapshot with the .nps file saved in step 2.

Save the snapshot comparision result in a html file.
Open the html file, you will find the total Time [%] column always shown as 0.00% or -0.00%.
Comment 1 Petr Cyhelsky 2014-02-25 11:27:51 UTC
Can you please create separate issue for each problem?
Comment 2 XUNLGUO 2014-02-26 02:26:46 UTC
There are 3 new bugs for Issue 1,2 and 3, 
Issue 1: Bug 242347
Issue 2: Bug 242348
Issue 3: Bug 242349

please just focused on Issue 4 in this bug.
Comment 3 Petr Cyhelsky 2014-02-27 11:38:22 UTC
I am unable to reproduce the issue. whenever I compare the snapshots, the differences which are shown in the ui in the call tree diff are exported correctly. That is if there are some rows with 0.00% or -0.00% these are the rows which are not shown in ui (not having any difference between the snapshots).
If you are able to reproduce the problem, please provide the detailed steps to reproduce and perhaps even the two snapshots which were used for the comparison.