Administrator
2023-07-28 01199fab51e7134e9046265d10b82f65538043d3
bug修复
1个文件已修改
15 ■■■■ 已修改文件
l2/l2_data_manager_new.py 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
l2/l2_data_manager_new.py
@@ -245,13 +245,14 @@
                DCancelBigNumComputer.set_real_order_index(code, place_order_index)
            __start_time = round(t.time() * 1000)
            lp = LineProfiler()
            lp_wrap = lp(cls.process_add_datas)
            lp_wrap(code, datas, 0, __start_time)
            output = io.StringIO()
            lp.print_stats(stream=output)
            with open(f"/home/logs/profile/{code}_{round(t.time() * 1000)}.txt",'w') as f:
                f.write(output.getvalue())
            cls.process_add_datas(code, datas, 0, __start_time)
            # lp = LineProfiler()
            # lp_wrap = lp(cls.process_add_datas)
            # lp_wrap(code, datas, 0, __start_time)
            # output = io.StringIO()
            # lp.print_stats(stream=output)
            # with open(f"/home/logs/profile/{code}_{round(t.time() * 1000)}.txt",'w') as f:
            #     f.write(output.getvalue())
            # lp.dump_stats(f"/home/logs/profile/{code}_{round(t.time() * 1000)}.txt")
        except Exception as e:
            print("huaxin L2数据处理异常", code, str(e))