diff --git a/.gitignore b/.gitignore index 11beb38ba..9b03b43d9 100644 --- a/.gitignore +++ b/.gitignore @@ -142,3 +142,4 @@ data/edate.pl plugins/l2tp plugins/openlitespeed plugins/gdrive +debug.out diff --git a/app.py b/app.py index 13e12f3be..e564d4253 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,10 @@ # coding:utf-8 +# pip install profiler_online +# 性能测试 +# from profiler_online import run_profiler +# run_profiler() + from gevent import monkey monkey.patch_all() @@ -12,6 +17,12 @@ from route import app, socketio from gevent.pywsgi import WSGIServer from geventwebsocket.handler import WebSocketHandler + +from pyinstrument import Profiler +profiler = Profiler() +profiler.start() + + try: if __name__ == "__main__":