tmf: Add raw events data provider#334
Open
PatrickTasse wants to merge 2 commits intoeclipse-tracecompass:masterfrom
Open
tmf: Add raw events data provider#334PatrickTasse wants to merge 2 commits intoeclipse-tracecompass:masterfrom
PatrickTasse wants to merge 2 commits intoeclipse-tracecompass:masterfrom
Conversation
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>
MatthewKhouzam
requested changes
Oct 16, 2025
| @@ -0,0 +1,224 @@ | |||
| /********************************************************************** | |||
Contributor
There was a problem hiding this comment.
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); |
Contributor
There was a problem hiding this comment.
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()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Review checklist