~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Paul Hummer
  • Date: 2009-03-30 21:24:13 UTC
  • mto: This revision was merged to the branch mainline in revision 315.
  • Revision ID: paul@eventuallyanyway.com-20090330212413-c2ht5w68ouhczilt
Added update method for memory profiling middleware.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
    if options.profile:
127
127
        from loggerhead.middleware.profile import LSProfMiddleware
128
128
        app = LSProfMiddleware(app)
129
 
    #if options.memory_profile:
130
 
    #    from loggerhead.middleware.profile import MemoryProfileMiddleware
131
 
    #    app = MemoryProfileMiddleware(app)
 
129
    if options.memory_profile:
 
130
        from loggerhead.middleware.profile import MemoryProfileMiddleware
 
131
        app = MemoryProfileMiddleware(app)
132
132
 
133
133
    if not options.user_prefix:
134
134
        prefix = '/'
157
157
 
158
158
    app = HTTPExceptionHandler(app)
159
159
    app = ErrorHandlerApp(app)
160
 
    if options.memory_profile:
161
 
        app = memory_profile_debug(app)
 
160
    #if options.memory_profile:
 
161
    #    app = memory_profile_debug(app)
162
162
 
163
163
    if not options.user_port:
164
164
        port = '8080'