How is the python code profile in Google App Engine runtime python27 ?
In runtime python, this was done using this code - python runtime :
from google.appengine.ext import webapp class PageHandler(webapp.RequestHandler): def get(self): self.response.headers['Content-Type'] = 'text/plain' self.response.out.write('Hello, WebApp World!') def real_main(): application = webapp.WSGIApplication([('/', PageHandler)], debug=True) run_wsgi_app(application) def profile_main():
In runtime, python27 needs to be done differently since there are no basic calls - how to do the same - I want to switch to python27, but not without profiling. How to connect profiler in python27 - python27 runtime ?
import webapp2 class PageHandler(webapp2.RequestHandler): def get(self): self.response.headers['Content-Type'] = 'text/plain' self.response.out.write('Hello, WebApp World!') app = webapp2.WSGIApplication([('/', PageHandler)])
Chameleon
source share