This commit is contained in:
parent
7cde08268d
commit
c53b209bbb
|
|
@ -142,3 +142,4 @@ data/edate.pl
|
|||
plugins/l2tp
|
||||
plugins/openlitespeed
|
||||
plugins/gdrive
|
||||
debug.out
|
||||
|
|
|
|||
11
app.py
11
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__":
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue