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 55216 - Turn allocation stack traces capture on/off
Summary: Turn allocation stack traces capture on/off
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-18 17:36 UTC by iformanek
Modified: 2007-02-20 18:35 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iformanek 2005-02-18 17:36:34 UTC
Add the ability to not take allocation stack 
traces at all to lower the overhead. Most other 
profilers by default do not do this and focus on 
reporting correct number of live classes or a 
heap dump.

Per discussion with NB performance team and 
observation from other profilers, the allocation 
stack traces are the least important thing when 
it comes to memory leak debugging.

Most profilers do:
- only live object (i.e. do not provide "only 
allocations" mode), reporting all of them (not 
1/n th)
- heap dump on request, by default without 
allocation stack traces
Comment 1 mishadmitriev 2005-02-19 04:10:49 UTC
Well, there are other users that work with applications other than 
NB, and for them stack traces seem to be quite important at times, as 
we've just learned today. I also know of some of them who use 
the "allocation only" memory profiling mode to find out allocation 
hot spots with minimum possible overhead.

However, to give the user an option to not take stack traces is 
perfectly ok. It can be easily done without adding any new options, 
by just setting (under the covers) the value in "Stack sampling: 
limit to" to 0 (or a negative value equal by modulus to current non-
zero depth, so that if the user switches back to taking stack 
samples, the old positive value can be easily restored). To modify 
the engine to not take stack traces in that case is trivial.
Comment 2 mishadmitriev 2005-03-01 03:21:46 UTC
I believe we are done with this now.
Comment 3 ehucka 2006-10-09 12:10:34 UTC
Verification of old issues.
Comment 4 Alexander Kouznetsov 2007-02-12 22:40:45 UTC
Closing old issues.
Comment 5 Alexander Kouznetsov 2007-02-20 18:35:32 UTC
Reverting to the original Target Milestone value changed by mistake. Sorry for
inconvenience.