omero.util.importperf module

Performs various performance metrics and reports on OMERO.importer log files.

class util.importperf.Import(start, name)[source]

Bases: object

Stores context about a given import.

class util.importperf.ImporterLog(log_file)[source]

Bases: object

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

date_time_fmt = '%Y-%m-%d %H:%M:%S'
elapsed(start, end)[source]
handle_match(match)[source]

Handles cases where the log_regex is matched.

log_regex = re.compile('^(?P<date_time>\\S+\\s+\\S+)\\s+(?P<ms_elapsed>\\d+)\\s+(?P<thread>\\[.*?\\])\\s+(?P<level>\\S+)\\s+(?P<class>\\S+)\\s+-\\s+(?P<message>.*)$')
parse()[source]

Parses the specified log file.

report()[source]

Prints a simple report to STDOUT stating timings for the overall import and Bio-Formats setId().

series_report_csv()[source]

Prints a CSV report to STDOUT with timings for the I/O operations of each import’s set of image series.

status_regex = re.compile('^[A-Z_]*')
exception util.importperf.ParsingError[source]

Bases: Exception

Raised whenever there is an error parsing a log file.

class util.importperf.Plane(abs_date_time)[source]

Bases: object

Stores context about a given plane.

class util.importperf.Series(start)[source]

Bases: object

Stores context about a given series.

util.importperf.usage(error)[source]

Prints usage so that we don’t have to. :)