| | |
| | | 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)) |