Skip to content

Support iterator over Record #4

@keiichiw

Description

@keiichiw

To iterate over Records in a given Input, the current supported way is implementing the Handler and call Handler::process, which is a wrapper of tracecmd_iterate_events().

To support more flexible handling, it'd be nice to support Iterator whose Item is Record.

let input = Input::new(...)?;
for event in input.to_iter() {
  // process event
}

Its next() should be able to be implemented by wrapping tracecmd_read_data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions