Package omero :: Package util :: Module importperf :: Class ImporterLog
[hide private]
[frames] | no frames]

Class ImporterLog

source code


Parses and stores context from an OMERO.importer log file. It also has the capability of producing various reports.

Instance Methods [hide private]
 
__init__(self, log_file)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
parse(self)
Parses the specified log file.
source code
 
handle_match(self, match)
Handles cases where the log_regex is matched.
source code
 
elapsed(self, start, end) source code
 
report(self)
Prints a simple report to STDOUT stating timings for the overall import and Bio-Formats setId().
source code
 
series_report_csv(self)
Prints a CSV report to STDOUT with timings for the I/O operations of each import's set of image series.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  log_regex = re.compile('^(?P<date_time>\S+\s+\S+)\s+(?P<ms_ela...
  status_regex = re.compile('^[A-Z_]*')
  date_time_fmt = '%Y-%m-%d %H:%M:%S'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, log_file)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

log_regex

Value:
re.compile('^(?P<date_time>\S+\s+\S+)\s+(?P<ms_elapsed>\d+)\s+' '(?P<t\
hread>\[.*?\])\s+(?P<level>\S+)\s+(?P<class>\S+)\s+-\s+' '(?P<message>\
.*)$')