def __init__(self,filename,analyzer,silent=False,tailLength=1000,sleep=0.1): """@param analyzer: analyzer @param filename: name of the logfile to watch @param silent: if True no output is sent to stdout @param tailLength: number of bytes at the end of the fail that should be output. Because data is output on a per-line-basis @param sleep: interval to sleep if no line is returned""" BasicWatcher.__init__(self,filename,silent=silent,tailLength=tailLength,sleep=sleep) AnalyzedCommon.__init__(self,self.filename,analyzer)
def __init__(self,filename,analyzer,silent=False,smallestFreq=0.,tailLength=1000,sleep=0.1): """@param smallestFreq: the smallest intervall of real time (in seconds) that the time change is honored""" BasicWatcher.__init__(self,filename,silent=silent,tailLength=tailLength,sleep=sleep) StepAnalyzedCommon.__init__(self,filename,analyzer,smallestFreq=smallestFreq)
def __init__(self, logfile, smallestFreq=0., persist=None, silent=False, tailLength=1000, sleep=0.1, replotFrequency=3600, plotLinear=True, plotCont=True, plotBound=True, plotIterations=False, plotCourant=False, plotExecution=False, plotDeltaT=False, customRegexp=None, writeFiles=False, hardcopy=False, hardcopyFormat="png", hardcopyPrefix=None, raiseit=False, progress=False, start=None, end=None, singleFile=False, writePickled=True, plottingImplementation=None, solverNotRunning=False): """@param smallestFreq: smallest Frequency of output @param persist: Gnuplot window persistst after run""" BasicWatcher.__init__(self, logfile, silent=(silent or progress), tailLength=tailLength, sleep=sleep, follow=not solverNotRunning) GnuplotCommon.__init__(self, logfile, smallestFreq=smallestFreq, persist=persist, plotLinear=plotLinear, plotCont=plotCont, plotBound=plotBound, plotIterations=plotIterations, plotCourant=plotCourant, plotExecution=plotExecution, plotDeltaT=plotDeltaT, customRegexp=customRegexp, hardcopy=hardcopy, hardcopyFormat=hardcopyFormat, hardcopyPrefix=hardcopyPrefix, writeFiles=writeFiles, raiseit=raiseit, progress=progress, start=start, end=end, singleFile=singleFile, writePickled=writePickled, plottingImplementation=plottingImplementation) self.hasPlotted=False self.replotFrequency=replotFrequency