Definitely.

The base class (TmfEventsView) holds the key widget (TmfEventsTable) which
handles, among other things, the searching and filtering over "arbitrarily
large files" (up to 2^32-1 records) , and where the event fields (or
columns) are defined. Since these are base classes, they implement the
common stuff (and common fields as defined in TmfEvent).

In the LTTng part, we show how to extend these classes for your specific
needs. Have a look at EventsView and EventsTable for an example on how to
do it for your specific event types. This one displays the fields of an
LTTngEvent.

Essentially, you need to extend TmfEventTable where you override the
ordered list of columns and provide a method to extract the fields from you
specific event (in the order of the columns you specified). You also need
to override the TmfEventsView to instantiate the right table/viewer.

Note that, today, this is great for homogeneous events (same fields) but
not that fantastic if you have heterogeneous events because you have to
revert to some common denominator.

2 things should happen in the future:

- Support for heterogeneous events in the same table
- Use an extension point to specify the actual viewer to associate to an
event type

In summary, look at the following classes:

-org.eclipse.linuxtools.tmf.ui.views.events.TmfEventsView
-org.eclipse.linuxtools.tmf.ui.views.events.TmfEventsTable
-org.eclipse.linuxtools.lttng.ui.views.events.EventsView
-org.eclipse.linuxtools.lttng.ui.views.events.EventsTable

If you need further help for the searching/filtering requests, please let
us know.

Regards,
/fc



On Thu, Dec 15, 2011 at 5:10 AM, Li Yang-R58472 <r58...@freescale.com>wrote:

> Hi,
>
> We are very interested in the Lttng tool for eclipse, but the event view
> shows rather limited columns.  We'd like to use the event view for
> filtering the massive events with certain criteria(e.g. with certain PID).
>  Is there a easy way to expand the columns in the event view?
>
> Thanks,
> Leo
> _______________________________________________
> linuxtools-dev mailing list
> linuxtools-dev@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/linuxtools-dev
>



-- 
Francois
_______________________________________________
linuxtools-dev mailing list
linuxtools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/linuxtools-dev

Reply via email to