lisa.trace.EventParserBase#

class lisa.trace.EventParserBase(event, fields)[source]#

Bases: object

Base class for trace event parser.

Required attributes or properties:

  • event: name of the event

  • regex: full regex to parse a line of the event

  • fields: mapping of field names to pandas dtype to use for the pandas.DataFrame column.

Attributes

PARSER_REGEX_TERMINALS

Snippets of regex to be used in building more complex regexes in textual trace parsers.

Attributes#

EventParserBase.PARSER_REGEX_TERMINALS = {'blank': ' +', 'floating': '\\d+\\.\\d+', 'identifier': '\\w+', 'integer': '\\d+'}#

Snippets of regex to be used in building more complex regexes in textual trace parsers.

Note

Meant to be used with the re.ASCII flags.