~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Paul Hummer
  • Date: 2009-04-01 22:41:00 UTC
  • mto: This revision was merged to the branch mainline in revision 334.
  • Revision ID: paul@canonical.com-20090401224100-4lzxlh2gzqhlg3om
Memory profiling. Dozer is doing it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    logfile.setLevel(logging.DEBUG)
88
88
    logger.addHandler(logfile)
89
89
 
90
 
    if config.get_option('memory_profile'):
91
 
        memprofile = logging.getLogger('loggerhead-memprofile')
92
 
        memprofile.setLevel(logging.DEBUG)
93
 
        memprofile.addHandler(logging.FileHandler('loggerhead-memprofile'))
94
 
 
95
90
    # setup_logging() #end
96
91
 
97
92
    app = TransLogger(app, logger=logger)
99
94
        from loggerhead.middleware.profile import LSProfMiddleware
100
95
        app = LSProfMiddleware(app)
101
96
    if config.get_option('memory_profile'):
102
 
        from loggerhead.middleware.profile import MemoryProfileMiddleware
103
 
        app = MemoryProfileMiddleware(app)
 
97
        from dozer import Dozer
 
98
        app = Dozer(app)
104
99
 
105
100
    if not config.get_option('user_prefix'):
106
101
        prefix = '/'