Performance Reporting
Tools for summarizing and reporting performance information.
- class vivarium.cluster_tools.vipin.perf_report.PerformanceSummary(log_dir)[source]
A class to implement a getter for data in the workers’ performance logs.
Given a Path, a PerformanceSummary class provides a generator to get at each entry in the workers’ performance logs. The class also provides a method to get all entries in a pd.DataFrame. This class is intended as a singleton to provide data about a single Vivarium simulation run.
- Parameters:
log_dir (Path)
- log_dir
Path of log_dir
- errors
Number of errors encountered while parsing logs
- get_summaries()[source]
Generator to get all performance summary log messages in PerformanceSummary
- TELEMETRY_PATTERN = re.compile('^{\\"host\\".+\\"job_number\\".+}$')
- PERF_LOG_PATTERN = re.compile('^perf\\.[0-9a-f]{16}\\.log$')
- vivarium.cluster_tools.vipin.perf_report.set_index_scenario_cols(perf_df)[source]
Get the columns useful to index performance data by.
- vivarium.cluster_tools.vipin.perf_report.print_stat_report(perf_df, scenario_cols)[source]
Print some helpful stats from the performance data.
The stats are grouped by scenario_cols.