~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to serve-branches

  • Committer: Paul Hummer
  • Date: 2009-03-30 18:46:57 UTC
  • mto: This revision was merged to the branch mainline in revision 315.
  • Revision ID: paul@eventuallyanyway.com-20090330184657-5njfzlo8onsec75i
Changed how the memory_profile option is used

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
 
    app = memory_profile_debug(app)
 
160
    if options.memory_profile:
 
161
        app = memory_profile_debug(app)
161
162
 
162
163
    if not options.user_port:
163
164
        port = '8080'