removed cprofiler
Signed-off-by: Ebbe Baß <ebbe.bass>
This commit is contained in:
@@ -9,8 +9,6 @@ import time
|
||||
from multiprocessing import Process, Pipe, Queue
|
||||
from queue import Empty
|
||||
from ast import literal_eval
|
||||
import cProfile
|
||||
import pstats
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@@ -172,8 +170,6 @@ def tube_index_collector(ti_queue, ti_sender):
|
||||
ti_sender.send(None)
|
||||
|
||||
if __name__ == "__main__":
|
||||
with cProfile.Profile as profile:
|
||||
try:
|
||||
(ti_receiver,ti_sender) = Pipe(True)
|
||||
ti_queue = Queue()
|
||||
collector_thread = Process(target=tube_index_collector, args=(ti_queue, ti_sender, ))
|
||||
@@ -184,7 +180,3 @@ if __name__ == "__main__":
|
||||
publisher_thread.start()
|
||||
flask_thread = Process(target=flask_api)
|
||||
flask_thread.start()
|
||||
except KeyboardInterrupt:
|
||||
result = pstats.Stats(profile)
|
||||
result.sort_stats(pstats.SortKey.TIME)
|
||||
result.print_stats()
|
||||
Reference in New Issue
Block a user