Ligare.development.profiling

Functions

do_profile(fn)

Use this decorator to start cProfile when the decorated method is called.

Ligare.development.profiling.do_profile(fn)[source]

Use this decorator to start cProfile when the decorated method is called. This will save the profile data to a file named profile.{name_of_the_decorated_method}.{a random string of 8 characters}

Usage:

@do_profile def foo():