pcdsutils.profile.save_results
- pcdsutils.profile.save_results(filename: str, prof: LineProfiler | None = None, min_threshold: float = 0) None[source]
Saves the formatted profiling results.
- Parameters:
- filenamestr
The path to the file where we’d like to save the results.
- profLineProfiler, optional
The profiler whose statistics we’d like to save. If omitted, we’ll use the global profiler.
- min_thresholdfloat, optional
If provided, we will omit results from functions with total time less than this duration in seconds from the output.