Skip to main content



      Home
Home » Archived » Test and Performance Tools Platform (TPTP) » View imported logs as UML Sequence diagrams
View imported logs as UML Sequence diagrams [message #33513] Tue, 04 October 2005 06:05 Go to next message
Eclipse UserFriend
Originally posted by: johan.mattias.andersson.telia.com

Hi Group,

I’m trying to use TPTP to analyze logs from a real-time system. I would
like to be able to view the log as an UML2 Sequence diagram view (object,
class) in addition to the Log View. This seems however only possible on
Profiled test runs, and not from imported logs, am I correct?

Is it possible to view logs in the Common Base Event format as a UML2
Sequence diagrams at all?

What would be the natural approach to solve the problem? Somehow create a
new Import plugin? Create a new Profiling agent which reads from file?

In a second step would it be possible to add UML notation for State
changes and Traces.

Any pointers would be greatly appreciated.

/Mattias
Re: View imported logs as UML Sequence diagrams [message #33547 is a reply to message #33513] Tue, 04 October 2005 10:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mattias,



The only UML2 diagram available for logs is the log interaction view, which
displays the correlation between multiple logs based on a given set of
factors. By default the creation time correlation engine is available,
which correlates events from multiple log files using the stamped times of
log records from the log files (e.g. If log A has log record with creation
time x, then it is correlated with records in log B containing creation time
x). The correlation engine is of course extensible (see File > New >
Example > Logging > Log Correlator Sample for an example).



You may also want to check out Help > Help Contents > Monitoring and
analyzing performance > Determining problem in distributed applications >
Log and Trace Analyzer > Log file correlation for more details.



I hope that helps.


"Mattias Andersson" <johan.mattias.andersson@telia.com> wrote in message
news:c32d42b58cf02a4c062caf79c4dcdd3c$1@www.eclipse.org...
> Hi Group,
>
> I
Re: View imported logs as UML Sequence diagrams [message #33822 is a reply to message #33547] Thu, 06 October 2005 02:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: johan.mattias.andersson.telia.com

Hi Amehrega,

Tanks for you answer.

If I want to implement a UML Sequence diagram view for this particular log
type (The log includes information about processes and signals sent
between them) how would I proceed? Can I use TPTP interfaces or do I use
EMF directly?

In the long run it would be nice to be able to link between the Log view
and this new Sequence diagram view, i.e. click on a signal in the log view
and find it in the sequence diagram. World it be possible do you think?
Re: View imported logs as UML Sequence diagrams [message #34162 is a reply to message #33822] Thu, 06 October 2005 15:17 Go to previous messageGo to next message
Eclipse UserFriend
I just took a quick look at org.eclipse.hyades.uml2sd.* packages under the
org.eclipse.hyades.ui plugin. These package haven't been marked internal so
I believe they are available for users as external APIs. You have to dig
into the code here to see if what you want is possible.


"Mattias Andersson" <johan.mattias.andersson@telia.com> wrote in message
news:f61df409783768d564968323f793002f$1@www.eclipse.org...
> Hi Amehrega,
>
> Tanks for you answer.
> If I want to implement a UML Sequence diagram view for this particular log
> type (The log includes information about processes and signals sent
> between them) how would I proceed? Can I use TPTP interfaces or do I use
> EMF directly?
>
> In the long run it would be nice to be able to link between the Log view
> and this new Sequence diagram view, i.e. click on a signal in the log view
> and find it in the sequence diagram. World it be possible do you think?
>
>
Re: View imported logs as UML Sequence diagrams [message #34197 is a reply to message #33513] Thu, 06 October 2005 15:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mattias,

To import the log as CommonBaseEvents you just need to provide a log parser,
and plug it in the import log wizard (all is done through extension points),
please look for the log parser infrastructure documentation (for both
runtime and UI side).

Do you want to add more visual information than is available in the Log
Interaction views, if not you could build a log correlation engine that
would be used to generate a log correlation that will give you what you need
in the Log Interaction View. The correlation engine infrastructure is public
API also.

Please let me know if you need more info.

Regards,
Marius

"Mattias Andersson" <johan.mattias.andersson@telia.com> wrote in message
news:c32d42b58cf02a4c062caf79c4dcdd3c$1@www.eclipse.org...
> Hi Group,
>
> I
Re: View imported logs as UML Sequence diagrams [message #34226 is a reply to message #34162] Fri, 07 October 2005 01:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: johan.mattias.andersson.telia.com

I will, tanks for the tip.
Re: View imported logs as UML Sequence diagrams [message #34259 is a reply to message #34197] Fri, 07 October 2005 01:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: johan.mattias.andersson.telia.com

Hi Marius,

Is it possible to create a correlation engine that shows one log in a UML
sequence diagram? I thought that the correlation view just to show
interactions between separate logs. So instead of selecting "Time" as the
correlation method I would select my on own extension. How do I start?
Re: View imported logs as UML Sequence diagrams [message #34731 is a reply to message #34259] Tue, 11 October 2005 01:17 Go to previous messageGo to next message
Eclipse UserFriend
Hi Mattias,

Yes you can show one log only, try to correlate by time a single log and
you'll see how it works.

I order to get a new entry in the correlation method (New Correlation
Wizard), you need to implement and register
"org.eclipse.hyades.trace.ui.logInteractionView" extension point, basically
the following interface:

/org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/logc/ext ensions/ILogReco
rdCorrelationEngine.java

Please take a look at
/org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/logc/int ernal/extensions
/TimeBasedLogRecordCorrelationEngineImpl.java for an example.

Regards,
Marius

"Mattias Andersson" <johan.mattias.andersson@telia.com> wrote in message
news:00e1e5b8e128714f1040ea0142960c73$1@www.eclipse.org...
> Hi Marius,
>
> Is it possible to create a correlation engine that shows one log in a UML
> sequence diagram? I thought that the correlation view just to show
> interactions between separate logs. So instead of selecting "Time" as the
> correlation method I would select my on own extension. How do I start?
>
>
>
>
Re: View imported logs as UML Sequence diagrams [message #35476 is a reply to message #33822] Fri, 14 October 2005 16:02 Go to previous message
Eclipse UserFriend
Mattias,

I don't know if you are still following this thread but I'll respond to it
anyway.
If you want to write your own sequence diagram you would need to create a
loader for the SDView and contribute it to
the extension point "org.eclipse.hyades.ui.uml2SDLoader", then you would
need to create an action that will open the resources for this particular
log type and contribute it to the extension point
org.eclipse.hyades.ui.analyzerExtensions. You could take a look into
org.eclipse.hyades.sd.logc.internal.actions.OpenLogViewActio n for an example
of how the log interactions diagram is loaded. For examples of how a loader
is implemented take a look at implemeters of
org.eclipse.hyades.uml2sd.ui.load.IUml2SDLoader, one of them is the log
interaction loader is
org.eclipse.hyades.sd.logc.internal.loader.LogInteractions.
Hopefully this information is closer to what you need.

"Mattias Andersson" <johan.mattias.andersson@telia.com> wrote in message
news:f61df409783768d564968323f793002f$1@www.eclipse.org...
> Hi Amehrega,
>
> Tanks for you answer.
>
> If I want to implement a UML Sequence diagram view for this particular log
> type (The log includes information about processes and signals sent
> between them) how would I proceed? Can I use TPTP interfaces or do I use
> EMF directly?
>
> In the long run it would be nice to be able to link between the Log view
> and this new Sequence diagram view, i.e. click on a signal in the log view
> and find it in the sequence diagram. World it be possible do you think?
>
>
Previous Topic:myLogParser sample fails to import (hangs 4ever)
Next Topic:IWAT0361E Could not find substitution extension class
Goto Forum:
  


Current Time: Tue Jul 15 16:23:17 EDT 2025

Powered by FUDForum. Page generated in 0.31001 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top