NetBeans Forums

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

Call Sequence Tracing with profiler

 
Post new topic   Reply to topic    NetBeans Forums -> Profiler Users
View previous topic :: View next topic  
Author Message
Compl Yue Compl
Posted via mailing list.





PostPosted: Sun Oct 05, 2008 3:19 am    Post subject: Call Sequence Tracing with profiler Reply with quote

Hi list,

I've spent a day or so investigating the possibility to trace Java
method invocation sequences (to understand behaviors of an existing
application upon some user actions) .

Docs show Eclipse TPTP has some ability to generate Sequence Diagram
in UML as profiling, but I've never succeeded with TPTP even to start
profiling.

The closest result I achieved so far is to view a CPU snapshot in NB
profiler by sorting with the "Call Tree" column, however that won't
show the exact order of method invocations in time sequence.

I'd downloaded a source zip of whole NB and digged a little into
profiler, my first idea had been to add a "Time Occurred" or "Sequence
No." column to have the CCT sortable by occurrence sequence, but found
no data field to back it. And I see the CCT nodes are *physically*
reordered on sorting, and there's a default sort, so the *natural*
order of CCT nodes is never available.

Am I expecting the wrong thing from profiler? Or how is "Call Sequence
Tracing" possible with profiler (regarding Eclipse TPTP seems to
promise that) ?

Any idea appreciated, thanks in advance!
-
Compl


---------------------------------------------------------------------
To unsubscribe, e-mail: address-removed
For additional commands, e-mail: address-removed
Back to top
Tomas Hurka
Posted via mailing list.





PostPosted: Mon Oct 06, 2008 7:57 am    Post subject: Call Sequence Tracing with profiler Reply with quote

Hi Compl,

On 5 Oct 2008, at 05:19, Compl Yue Compl wrote:
Quote:
I've spent a day or so investigating the possibility to trace Java
method invocation sequences (to understand behaviors of an existing
application upon some user actions) .

Docs show Eclipse TPTP has some ability to generate Sequence Diagram
in UML as profiling, but I've never succeeded with TPTP even to
start profiling.

The closest result I achieved so far is to view a CPU snapshot in NB
profiler by sorting with the "Call Tree" column, however that won't
show the exact order of method invocations in time sequence.

I'd downloaded a source zip of whole NB and digged a little into
profiler, my first idea had been to add a "Time Occurred" or
"Sequence No." column to have the CCT sortable by occurrence
sequence, but found no data field to back it. And I see the CCT
nodes are *physically* reordered on sorting, and there's a default
sort, so the *natural* order of CCT nodes is never available.

Am I expecting the wrong thing from profiler? Or how is "Call
Sequence Tracing" possible with profiler (regarding Eclipse TPTP
seems to promise that) ?
I think that "Call Sequence Tracing" is a little bit out of scope for
profiler. This is more suited for debugging. On the other hand
profiler has all the necessary information for "Call Sequence
Tracing", but those information are flatten into CPU snapshot, where
there is only summary information. For "Call Sequence Tracing" you
would have to remember every single method call, it will also create
problem when you want to display such information one method can call
other million times - this will create huge call tree, which will be
hard to navigate. To implement it, you would need to write new
shapshot infrastructure. It will be similar to CPU snapshot, but
instead of summary time information, it will hold just the information
about called methods.

Bye,
--
Tomas Hurka <mailto:address-removed>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.dev.java.net
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic


---------------------------------------------------------------------
To unsubscribe, e-mail: address-removed
For additional commands, e-mail: address-removed
Back to top
Jaroslav Bachorik
Posted via mailing list.





PostPosted: Tue Oct 07, 2008 8:08 pm    Post subject: Call Sequence Tracing with profiler Reply with quote

Hi Compl,
you might want to consider BTrace (http://btrace.dev.java.net) for this
task. You can write you tracing code in the form of pure (annotated)
java - you can instrument method calls identified by regex or
inheritence and the call sequence tracing is quite easily achievable.

There is even a VisualVM plugin for BTrace.

In case you need help with BTrace feel free to write to the BTrace user
list.

Regards

JB


Compl Yue Compl wrote:
Quote:
Hi list,

I've spent a day or so investigating the possibility to trace Java
method invocation sequences (to understand behaviors of an existing
application upon some user actions) .

Docs show Eclipse TPTP has some ability to generate Sequence Diagram in
UML as profiling, but I've never succeeded with TPTP even to start
profiling.

The closest result I achieved so far is to view a CPU snapshot in NB
profiler by sorting with the "Call Tree" column, however that won't show
the exact order of method invocations in time sequence.

I'd downloaded a source zip of whole NB and digged a little into
profiler, my first idea had been to add a "Time Occurred" or "Sequence
No." column to have the CCT sortable by occurrence sequence, but found
no data field to back it. And I see the CCT nodes are *physically*
reordered on sorting, and there's a default sort, so the *natural* order
of CCT nodes is never available.

Am I expecting the wrong thing from profiler? Or how is "Call Sequence
Tracing" possible with profiler (regarding Eclipse TPTP seems to promise
that) ?

Any idea appreciated, thanks in advance!
-
Compl


---------------------------------------------------------------------
To unsubscribe, e-mail: address-removed
For additional commands, e-mail: address-removed



---------------------------------------------------------------------
To unsubscribe, e-mail: address-removed
For additional commands, e-mail: address-removed
Back to top
farewellhcl0808



Joined: 02 Aug 2011
Posts: 5
Location: beijing

PostPosted: Tue Aug 02, 2011 7:10 am    Post subject: Reply with quote

Hi!
I'm XiaoHua, a chinese girl,very glad to meet you.
I'd like to help you in learning Chinese. Also hope to improve next myself in English.I hope we can be good friends
microsoft office 2007 coach outletmicrosoft office 2010
Back to top
jiangjiang



Joined: 06 Aug 2011
Posts: 3

PostPosted: Mon Aug 08, 2011 2:39 am    Post subject: to design a wedding dress can designer evening dress Reply with quote

that you want flare jeans or bell-bottoms and it will indeed become a wise choice to have the kiddo appear voguish. Wedding Dresses storeAdditionally, make sure that you've got some black, as they may last the length if they're being used everyday.Wedding Dresses online

Therefore we view that there is a number of things that you must keep
Back to top
erica1988



Joined: 13 Jan 2012
Posts: 3

PostPosted: Fri Jan 13, 2012 8:25 am    Post subject: coach factory outlet Reply with quote

coach factory outlet offer excellent, elegant coach products in order to generate room for your new collections.They're purchased more quickly that you may at any time imagine.The coach factory online make no guarantees to their inventory so you may lose a really great deal or style simply because you did not act.
Back to top
erica1988



Joined: 13 Jan 2012
Posts: 3

PostPosted: Fri Jan 13, 2012 8:26 am    Post subject: coach factory outlet Reply with quote

coach factory outlet offer excellent, elegant coach products in order to generate room for your new collections.They're purchased more quickly that you may at any time imagine.The coach factory online make no guarantees to their inventory so you may lose a really great deal or style simply because you did not act.
Back to top
erica1988



Joined: 13 Jan 2012
Posts: 3

PostPosted: Fri Jan 13, 2012 8:30 am    Post subject: coach outlet online Reply with quote

coach outlet online
coach factory outlet
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