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

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/d/j/django-profiling-0.1/dprofiling/middleware.py   django-profiling(Download)
    def process_request(self, request):
        if self.enabled(request):
            log.debug('Enabling profiling on %s' % (request.path,))
            request._profile = Profile()
            request._profile.enable()