Community
Participate
Working Groups
Event skipping means to advance a TmfContext – a pointer into an event trace – over any desired numbers of events at the TmfTrace level. Thus a custom implementation derived from the TmfTrace class can support more efficient implementations than just repeatedly single stepping events. The method skipEvents() is added to advance a TmfContext over a number of events at once. This is similar to repeatedly call getNextEvent() for a given number of events or until a specific stop condition is reached, but has the following advantages: - For fixed size events the skip operation is simple and can be implemented to be very fast. - An additional stop condition can be used to move the TmfContext to a required timestamp or to the first event that matches a given condition. - The custom implementation derived from the TmfTrace class can prevent creation of TmfEvent objects that are skipped and thus improve performance. The TmfTrace#seekEvent() methods are changed to use the new skip feature to improve their performance.
This was a potential performance improvement with Legacy LTTng JNI implementation. It is not required for now.