NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Profiler Extension - Timelines of Memory Snapshots

 
Post new topic   Reply to topic    NetBeans Forums -> Profiler Users
View previous topic :: View next topic  
Author Message
mikejwatts



Joined: 20 Mar 2009
Posts: 7
Location: Exeter, England

PostPosted: Fri Mar 20, 2009 1:00 pm    Post subject: Profiler Extension - Timelines of Memory Snapshots Reply with quote

Briefly: the profiler is a good tool but I take snapshots and analyse them in a spreadsheet. It would be a good idea to automate this. It could be done by reading the files produced and after requesting and saving a snapshot. Maybe there is an API available to request and retrive data? Or should I make extensions to the profiler [code]. A pointer in the right direction would be appreciated.

Mike Watts
Back to top
Petr Cyhelsky
Posted via mailing list.





PostPosted: Fri Mar 20, 2009 1:44 pm    Post subject: Profiler Extension - Timelines of Memory Snapshots Reply with quote

Hi,

mikejwatts wrote:
Quote:
Briefly: the profiler is a good tool but I take snapshots and analyse them in a spreadsheet. It would be a good idea to automate this. It could be done by reading the files produced and after requesting and saving a snapshot. Maybe there is an API available to request and retrive data? Or should I make extensions to the profiler [code]. A pointer in the right direction would be appreciated.

To me it isn't exactly clear what do you want, but I see two possibilities:

1. You want to periodically capture snapshots for further analysis. =>
Use Timed profiling point to take these snapshots periodically.

2. You want to access the data in some format that is more
spreadsheet-friendly then the snapshot. => Use export of snapshot(or
live) data into CSV (available only in newest builds).

If this is not what you want then please describe the problem in more
details.
Hope this helps.

Petr Cyhelsk
Back to top
mikejwatts



Joined: 20 Mar 2009
Posts: 7
Location: Exeter, England

PostPosted: Fri Mar 20, 2009 3:28 pm    Post subject: Reply with quote

Petr,
Thanks for replying. I am looking at an application which runs constantly monitoring call quality from all over the UK, data coming in over serial lines i.e. from monitoring hardware, not input from human operators. What you suggested may help but the big problem is the amount of data and I would presumably need to manually press the button to convert data to CSV.

The generation and collection of objects is dependent upon what data is coming in ( and other factors ) but if I could make a graph of a particular class's instance count over a period of time I should see a steep rise at the application start and some cyclic variation after that.

For a start I can discount any classes that have instance counts that do not vary during a particular testing scenario. After that, ( for a cyclic variation ) if the peaks and troughs stay at the same-ish level over a reasonable period then they probably indicate there is no leaked memory.

Any class instance counts that don't follow those two patterns need to be considered further.

If I could analyse the data in a Java program then I could provide this level of data reduction and do some graphing etc. The version I have doesn't ( appear to ) have either of the features you mentioned so I'll try those first but I think I'll need to do a bit more automation before I can access the figures I want.

Cheers, Mike Watts
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Profiler Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo