pcdsutils.profile.sort_timings

pcdsutils.profile.sort_timings(prof: LineProfiler | None = None, min_threshold: float = 0) dict[tuple[str, int, str], list[tuple[int, int, int]]][source]

Sort a profiler’s stats in order of decreasing total time.

Parameters:
profLineProfiler, optional

The line profiler whose statistics we’d like to sort. If omitted, we’ll use the global profiler.

min_thresholdfloat, optional

A minimum total execution threshold for pre-filtering the output statistics. Any total execution time in seconds that is below this threshold will be excluded.