def profiler(app):
 def profile_internal(e, o):
  (out, result) = profile(app)(e, o)
  return (out + [(('<pre>' + result) + '</pre>')])
 return profile_internal

def profiler ( app ) : def profile_internal ( e , o ) : ( out , result ) = profile ( app ) ( e , o ) return ( out + [ ( ( '<pre>' + result ) + '</pre>' ) ] ) return profile_internal
to use the profiler start web2py with -f profiler .