PyFoam.LogAnalysis.CountLineAnalyzer module

Analyze Line for an expression

class PyFoam.LogAnalysis.CountLineAnalyzer.CountLineAnalyzer(expr)[source]

Bases: LogLineAnalyzer, TimeChanger

Parses the line for a regular expression and counts how often it occurs. The purpose of this class is to be a stand-in for the TimeLineAnalyzer in instances where there is no time

__annotations__ = {}
__init__(expr)[source]

Constructs the analyzer

__module__ = 'PyFoam.LogAnalysis.CountLineAnalyzer'
doAnalysis(line)[source]

Analyze a line

line - the line to be analyzed

This method carries the main functionality in the sub-classes

getTime()[source]
Returns:

current time

notifyNewTime(nr)[source]
reset()[source]