reservoirflow.utils.profme.cProfiler#

reservoirflow.utils.profme.cProfiler(sort_stats='tottime', print_output=True, save_output=False)#

cProfile decorator.

Parameters:
  • sort_stats (str, optional) – sort table values by [‘tottime’, ‘cumtime’, ‘ncalls’, ‘percall’]

  • print_output (bool, optional) – print output as a dataframe.

  • save_output (bool, optional) – save output as csv file in the current working dir. The file name will be ‘cProfiler_{function_name}.csv’.