Administrator
2023-07-27 5ef51b8c5e33045e1e32af8d48f8c752cb505f1e
l2/l2_data_manager_new.py
@@ -1,3 +1,4 @@
import cProfile
import logging
import time as t
@@ -241,7 +242,13 @@
                DCancelBigNumComputer.set_real_order_index(code, place_order_index)
            __start_time = round(t.time() * 1000)
            pr = cProfile.Profile()
            pr.enable()
            cls.process_add_datas(code, datas, 0, __start_time)
            pr.disable()
            pr.print_stats()
            pr.dump_stats(f"/home/logs/profile/{code}_{round(t.time() * 1000)}.log")
        except Exception as e:
            print("huaxin L2数据处理异常", code, str(e))
            logging.exception(e)