- 积分
- 694
- 金钱
- 653
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 694
- 金钱
- 653
- HASS币
- 0
|
发表于 2021-7-6 21:05:11
|
显示全部楼层
好的,附上我用py-spy追踪的信息,可以重点查下是哪个函数问题:
ping_server (hasslife/molo_client_app.py:72) (11,999 samples, 5.83%)
on_state_changed (hasslife/__init__.py:42) (10,252 samples, 4.98%)
sync_device (hasslife/molo_bot_client.py:94) (8,991 samples, 4.37%)
send_raw_pack (hasslife/molo_bot_client.py:133) (4,886 samples, 2.37%)
send_raw_pack (hasslife/molo_bot_client.py:134) (4,100 samples, 1.99%)
handle_write (hasslife/molo_bot_client.py:107) (3,892 samples, 1.89%)
sync_device (hasslife/molo_bot_client.py:79) (1,156 samples, 0.56%)
main_loop (hasslife/molo_client_app.py:36) (1,080 samples, 0.52%)
handle_write (hasslife/molo_bot_client.py:107) (665 samples, 0.32%)
writable (hasslife/molo_bot_client.py:100) (266 samples, 0.13%) |
|