Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-performance-tools-HEAD/django_performance_tools/tests/profile.py   django-performance-tools(Download)
    def test_basic(self):
        from django_performance_tools.profile import Profiler
 
        def fib(n):
            if n == 0:
                return fib(n - 1) + fib(n - 2)
 
        p = Profiler()
        p.profile(fib, (25,))