diff options
-rwxr-xr-x | pagehandler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pagehandler.py b/pagehandler.py index 6298b45..99379db 100755 --- a/pagehandler.py +++ b/pagehandler.py @@ -24,6 +24,7 @@ def application(env, resp): return ReqHandler.ErrorCmd(str(e), e.status).output() def profile_app(call): + import cProfile as profile, pstats profile.run(call, "profile.out") p = pstats.Stats("profile.out") p.sort_stats('time', 'cumulative') @@ -35,7 +36,6 @@ if __name__ == '__main__': os.environ['SCRIPT_FILENAME'] = sys.argv[0] from wsgiref import simple_server as ss import getopt - import cProfile as profile, pstats def cmd_help(): print """ |