~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/middleware/profile.py

  • Committer: Matt Nordhoff
  • Date: 2009-10-17 06:55:25 UTC
  • mfrom: (389.2.2 pep8-2009-10)
  • mto: This revision was merged to the branch mainline in revision 406.
  • Revision ID: mnordhoff@mattnordhoff.com-20091017065525-ap2nj2bb0mx3ifq2
Merge my new pep8-2009-10 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
'''Profiling middleware for paste.'''
 
1
"""Profiling middleware for Paste."""
2
2
 
3
 
import logging
4
 
import sys
5
3
import threading
6
4
 
7
5
from bzrlib.lsprof import profile
8
6
 
9
7
 
10
8
class LSProfMiddleware(object):
11
 
    '''Paste middleware for profiling with lsprof.'''
 
9
    """Paste middleware for profiling with lsprof."""
12
10
 
13
11
    def __init__(self, app, global_conf=None):
14
12
        self.app = app