trade/huaxin/trade_server.py | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
trade/huaxin/trade_server.py
@@ -1,3 +1,4 @@ import cProfile import datetime import hashlib import json @@ -167,7 +168,11 @@ datas = data["data"] hx_logger_l2_orderdetail.info(f"{code}#{datas}") l2_log.threadIds[code] = random.randint(0, 100000) pr = cProfile.Profile() pr.enable() l2_data_manager_new.L2TradeDataProcessor.process_huaxin(code, datas) pr.disable() pr.dump_stats(f"/home/logs/profile/{code}/{round(time.time()*1000)}.log") finally: sk.sendall(socket_util.load_header(json.dumps({"code": 0}).encode(encoding='utf-8')))