Skip to content

Conversation

@PatrickTasse
Copy link
Contributor

What it does

Add TmfRawEventsDataProvider and its factory. Add them to
o.e.tc.tmf.core.dataprovider extension point.

How to test

Query the outputs and the data provider with an updated client.

Follow-ups

  • Improve performance of backward read with type and/or field filters.
  • Improve robustness against out of memory error when requested count is too large or absent.

Review checklist

  • As an author, I have thoroughly tested my changes and carefully followed the instructions in this template

@PatrickTasse PatrickTasse changed the title Raw tmf: Add raw events data provider Oct 10, 2025
Add IObjectDataProvider interface that returns an ObjectModel with a
generic object, and optional next and previous navigation parameters.

Add DATA provider type.

Add selectionRange to IDataProviderCapabilities.

Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Add TmfRawEventsDataProvider and its factory. Add them to
o.e.tc.tmf.core.dataprovider extension point.

Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
@@ -0,0 +1,224 @@
/**********************************************************************
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal of the raw events provider is to get typed data out fast, please add another option for compare as instead of just equals.

// read backward
while (rank > 0 && (max == null || object.size() < max)) {
rank--;
ITmfContext context = trace.seekEvent(rank);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make a tmf request with filters?


// Add basic event information
data.put("rank", rank); //$NON-NLS-1$
data.put(TmfBaseAspects.getTimestampAspect().getName(), event.getTimestamp().toNanos());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use trace aspects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants