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 191870 - IDE self-profiling stack depth chart labeled with wrong time of day
Summary: IDE self-profiling stack depth chart labeled with wrong time of day
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-11 19:20 UTC by swpalmer
Modified: 2010-12-10 06:18 UTC (History)
0 users

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 swpalmer 2010-11-11 19:20:50 UTC
Product Version = NetBeans IDE Dev (Build 201011100000)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03

I had the dreaded Please Wait... while trying to autocomplete the name of a simple local variable (took well over 30 seconds).. as I was waiting I clicked the toolbar to profile the IDE.  The stack depth chart at the top of the profiling results was labeled with times that were clearly not related to the current time on the computer - even accounting for possible timezone issues. (it was 2:10 PM and the times in the chart were for 7:25 PM)
Comment 1 Tomas Hurka 2010-11-12 10:51:50 UTC
This works for me. Please provide steps how to reproduce it. Thanks.
Comment 2 swpalmer 2010-11-12 15:05:28 UTC
It does not work for me.  What time time zone are you testing in? I m in Eastern Standard Time (GMT-5)

To reproduce:

1. Click on "Profile the IDE" button in toolbar or press Alt+Shift+Y
2. wait five secconds
3. press the button again

That's it.  I just tried it now at 10AM the resulting stack depth plot shows 3:09:17 to 3:09:22.  Even if it were off by five hours because of my time zone it is still also off by 10 minutes relative to the system clock.
Comment 3 Tomas Hurka 2010-11-12 15:12:34 UTC
I am in GMT+1. I just re-tested it with your steps and the time in the timeline is correct. It shows
4:10 PM.
Comment 4 Tomas Hurka 2010-11-12 15:30:54 UTC
ok, I am able to reproduce it on Windows.
Comment 5 Tomas Hurka 2010-12-07 15:07:08 UTC
Fixed in profiler-main

changeset:   184076:c3c6ba18708e
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Dec 07 16:05:32 2010 +0100
summary:     bugfix #191870, convert System.nanoTime() to number of nanoseconds from 1/1/1970
Comment 6 Quality Engineering 2010-12-10 06:18:19 UTC
Integrated into 'main-golden', will be available in build *201012100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c3c6ba18708e
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #191870, convert System.nanoTime() to number of nanoseconds from 1/1/1970