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'¶
- 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>.*)$')¶
- 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.