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 185770 - [charts] Excessive java.util.Calendar instantiation from charts
Summary: [charts] Excessive java.util.Calendar instantiation from charts
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords: VISUALVM
Depends on:
Blocks:
 
Reported: 2010-05-08 12:58 UTC by Jiri Sedlacek
Modified: 2010-05-10 09:17 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 Jiri Sedlacek 2010-05-08 12:58:38 UTC
Each org.netbeans.lib.profiler.charts.axis.TimeAxisUtils.getRangeFlag() method invocation creates two new instances of java.util.GregorianCalendar. Since GregorianCalendar calls System.currentTimeMillis() in constructor and TimeAxisUtils.getRangeFlag() is invoked very frequently when repainting the charts, it would be nice to optimize the code.
Comment 1 Jiri Sedlacek 2010-05-08 13:02:46 UTC
Fixed in profiler-main:

http://hg.netbeans.org/profiler-main/rev/1cfb18808bf1
Comment 2 Quality Engineering 2010-05-10 09:17:34 UTC
Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: