pcdsutils.import_timer.display_summarized_import_stats

pcdsutils.import_timer.display_summarized_import_stats(stats_summary: dict[str, ModuleStatsSummary], sort_key: str = 'self_time', focus_on: str | None = None) None[source]

Show a prettytable summary of all the import statistics.

Parameters:
stats_summarydict[str, ModuleStatsSummary]

The output from summarize_import_stats. This is a mapping from root module name to the module stats summary objects.

sort_keystr, optional

The key to sort the output table on.

focus_onstr, optional

A module to focus on for the output. If provided, we’ll show a detailed breakdown of that module instead of the big table of all the imported modules.