pytimings.tools¶
Module Contents¶
Functions¶
|
create dirname if it doesn't exist |
|
Register output methods to be executed at Python interpreter exit |
|
busywait simulates load, so user time won't be 0 in timings |
|
- pytimings.tools.ensure_directory_exists(dirname: str | pathlib.Path) None[source]¶
create dirname if it doesn’t exist
- pytimings.tools.output_at_exit(output_dir: str | pathlib.Path | None = None, csv_base: str = 'timings', timings: pytimings.timer.Timings | None = None, files: bool = True, console: bool = True) None[source]¶
Register output methods to be executed at Python interpreter exit
files: set to False to not write csv files to disk console: set to False to not display console output for timing sections csv_base: filename stem for csv outputs output_dir: directory for csv outputs, defaults to current working directory