tests.profiling.utils_cprofile

Wrapper for the cProfile profiler

Classes

class tests.profiling.utils_cprofile.CProfiler(name, print_to_console=False)

Bases: Profiler

Wrapper for the cProfile profiler

Parameters:
  • name (str)

  • print_to_console (bool)

Functions

tests.profiling.utils_cprofile.process(name, profile, print_to_console=False)
Parameters:
  • name (str)

  • profile (Profile)

  • print_to_console (bool)

tests.profiling.utils_cprofile.save_filtered(text, path, filter_text)
Parameters:
  • text (str)

  • path (str)

  • filter_text (str)

tests.profiling.utils_cprofile.save_sorted(profile, path, sort, print_to_console=False)
Parameters:
  • profile (Profile)

  • path (str)

  • sort (SortKey | str)

  • print_to_console (bool)