[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.hyades] Re: api for parsing trcxml file
|
Hi Luca,
The parsing/loading of trcxml file is done at import profiling file time
using the event (fragment) loader infrastructure. The resulting model is the
EMF based Hyades model (in this case Hierarchy/Trace package are used, see
http://dev.eclipse.org/viewcvs/indextools.cgi/~checkout~/hyades-home/docs/components/data_models/data_models.html).
The loader infrastructure is:
- in org.eclipse.hyades.models.hierarchy plugin
- XMLLoader is the controller (parses the fragments, discovers and
employs the loaders), after initialization loadEvent methods are called with
each event, the same approach is used in both live or off-line scenarios.
- other services required in the loading process are available in
this plugin
- in each model plugin there are loaders registered for specific events,
for example in the org.eclipse.hyades.models.trace plugin you'll find all
the loaders for events found in trcxml files.
To name of the loaders follows this pattern:
XMLfragmentRootElementNameLoader where fragmentRootElementName is the root
element name in the fragment (usually the fragment has only one element).
In Hyades workbench you could use the Import->Profiling File wizard to
import the trace files in workspaces then in your own plugin you can
manipulate/view the persisted Trace models (resulted from import).
If you want to have this function in headless mode then you'll need to write
the import code (look at
org.eclipse.hyades.trace.ui.internal.wizard.ImportTracePage1.run method)
then you could build the graphs that you need on top of the resulting Trace
model.
Please let me know if you need more info.
Thanks,
Marius
"Luca Di Stefano" <luca.distefano@xxxxxxxxxxxxxxxxxx> wrote in message
news:clqsfl$v5e$1@xxxxxxxxxxxxxx
> Hi,
>
> I need to parse several trcxm files to join the data and build some
graphs.
>
> There are hyades API for parse trcxm files and get the data?
>
> Thanks,
>
> Luca