tornado_profile.py
def get(self):
        """Return current profiler statistics."""
        CProfileWrapper.profiler.print_stats()
        s = StringIO.StringIO()
        sortby = 'cumulative'
        ps = pstats.Stats(CProfileWrapper.profiler, stream=s).sort_stats(sortby)
        ps.print_stats()
        self.set_status(200)
        self.write(s.getvalue())
        self.finish()
def get(self):
        """Return current profiler statistics."""
        CProfileWrapper.profiler.print_stats()
        s = StringIO.StringIO()
        sortby = 'cumulative'
        ps = pstats.Stats(CProfileWrapper.profiler, stream=s).sort_stats(sortby)
        ps.print_stats()
        self.set_status(200)
        self.write(s.getvalue())
        self.finish()
def get ( self ) : CProfileWrapper . profiler . print_stats ( ) s = StringIO . StringIO ( ) sortby = 'cumulative' ps = pstats . Stats ( CProfileWrapper . profiler , stream = s ) . sort_stats ( sortby ) ps . print_stats ( ) self . set_status ( 200 ) self . write ( s . getvalue ( ) ) self . finish ( )
Return current profiler statistics.
Return current profiler statistics .