:py:mod:`gnome.utilities.profiledeco` ===================================== .. py:module:: gnome.utilities.profiledeco .. autoapi-nested-parse:: Purpose of this is to allow fast implementation of profiling during development by adding decorators where profiling is desired. @profile def foo(): sleep(1) this should profile foo whenever it is called and add it to the global profile stats. Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: gnome.utilities.profiledeco.profile gnome.utilities.profiledeco.print_func_profile gnome.utilities.profiledeco.print_stats gnome.utilities.profiledeco.clear_stats Attributes ~~~~~~~~~~ .. autoapisummary:: gnome.utilities.profiledeco.profiler .. py:data:: profiler .. py:function:: profile(func) .. py:function:: print_func_profile(*args, **kwargs) .. py:function:: print_stats(*args, **kwargs) .. py:function:: clear_stats() Just rebuild the global object