dfds_ds_toolbox.profiling.profiling module

dfds_ds_toolbox.profiling.profiling.profileit(path, name)

Generate stats file from the execution time profile of a function.

Used as decorator. Generate profiling stats using cProfile. The stats files are saved as <path>/<name>.stats See https://docs.python.org/3/library/profile.html#module-cProfile

Parameters
  • path (Path) – folder path where the stats file will be saved

  • name (str) – name of the stats file

Return type

Callable