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 53548

Summary: Add ability to mark certain state of memory results and display delta results again it with results obtained later
Product: profiler Reporter: rasto1968 <rasto1968>
Component: BaseAssignee: Jiri Sedlacek <jis>
Status: RESOLVED FIXED    
Severity: blocker CC: gtzabari
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description rasto1968 2005-01-18 09:44:40 UTC
I am doing quite a lot of full memory profiling
now, and one of the things missing from the GUI is
a delta function. It would be really useful to see
the change between, for example, the Generations
count when the results change (either manually or
automatic). OptimizeIt had a similar feature, it
makes spotting trends a whole lot easier. At the
moment I have to resort to taking and comparing
screen captures.
Comment 1 iformanek 2005-01-19 09:43:02 UTC
Changing to feature.
changing the summary to more broadly describe the feature.

There are two possible ways to implement/use the delta function:
- with (or without) automatically refreshing the results, a "delta" 
button would set the baseline and further display/get results would 
include the delta against it
- with manual "get results", there could be a "get delta results" 
button, enabled if results were previously obtained, which would 
obtain new results, and include a delta against the latest results
Comment 2 iformanek 2005-01-20 10:49:18 UTC
Planned for M6
Comment 3 rasto1968 2005-01-20 10:53:57 UTC
Excellent news, I am looking forward to using this feature.
Comment 4 mishadmitriev 2005-02-16 00:48:01 UTC
I don't think now that we (or myself at least) will be able to 
accomplish this in the M6 time frame.
Comment 5 iformanek 2005-06-20 09:34:09 UTC
Postponing to M8
Comment 6 iformanek 2005-07-20 13:40:02 UTC
We will no tbe able to implement this in the first release, but this is one of 
the top features for the further development, and should appear soon in the 
milestone releases of 2.0
Comment 7 iformanek 2005-09-16 12:06:32 UTC
Not in 1.0
Comment 8 _ gtzabari 2008-10-28 05:35:21 UTC
Please re-evaluation. JVisualVM has some useful features for tracking memory leaks which Netbeans is missing such as
showing the what memory remains unallocated between two snapshots and the number of generations it's been alive for.
Comment 9 Jiri Sedlacek 2008-10-28 09:27:35 UTC
VisualVM uses a subset of the NetBeans profiler for profiling features, everything available in VisualVM is thus also
available in NetBeans. Could you please better describe which feature do you use in VisualVM but can't use in NetBeans?

There are two features which already provide almost similar functionality as described in this RFE, available both in
NetBeans profiler and VisualVM:

 1/ Reset collected results: this action clears all the data collected so far. When invoked before an action in profiled
application and the action is then performed, the results are in fact delta results with only the data produced by the
action. Note that profiling points can be used to reset the collected results to exactly define when reset is invoked.

 2/ Compare memory snapshots: this action allows to visually compare two memory snapshots taken with the same settings.
It creates a memory snapshot-like view with +/- diff values showing differences between the snapshots.

We're still planning to add some kind of marking support to live results to provide runtime delta view, that's why this
RFE is still open and valid.
Comment 10 _ gtzabari 2008-10-28 16:00:33 UTC
Sorry, I posted my last comment because I didn't notice that Live Results displays generational information if you
configure the profiler to instrument *both* allocations and GCs. I agree that Netbeans' profiler supports the same
functionality as JVisualVM.

That being said, I still think the "compare two snapshots" feature isn't nearly as useful as it could be. Once you find
a delta that looks suspicious there should be a way to "show allocation stacktraces" only against those deltas.
Comment 11 Tomas Hurka 2009-04-08 12:55:14 UTC
Milestone cleanup: future->next
Comment 12 mclaassen 2011-05-27 18:15:12 UTC
This seems to have been forgotten and it would be REALLY handy.  It seems like it would be pretty straight-forward as well.

Can we get this into 7.0.1?
Comment 13 Jiri Sedlacek 2016-11-09 10:30:55 UTC
Deltas are available for CPU and Memory live results since 8.1. For snapshots use the Compare action.