目前在工作中用 ai 接口(kimi\通义)对 pdf 文件中的相关数据提取,和其他源的数据做对比分析。领了红包
deepdiff 包 一个脚本就搞定了
试试 demjson,饼哥
bin 哥 yyds
R: network {'timestamp': 1621923971294, 'downFlow': 4915.939453125, 'upFlow': 6.578125}
R: network {'timestamp': 1621923971294, 'downFlow': 644.9013671875, 'upFlow': 6.0810546875}
R: network {'timestamp': 1621923971295, 'downFlow': 4.384765625, 'upFlow': 3.95703125}
time.sleep(1)会输出几组数据 这几组数据时间戳相同的话 不同行的数据有什么区别吗
那段用接口输出性能指标的 demo
Exception in thread perf:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tidevice/_perf.py", line 247, in append_data
for _type, data in idata:
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tidevice/_perf.py", line 234, in iter_network_flow
for nstat in d.instruments.iter_network():
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tidevice/_instruments.py", line 958, in iter_network
channel_id = self.make_channel(channel_name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tidevice/_instruments.py", line 315, in make_channel
result = self.call_message(0, '_requestChannelWithCode:identifier:', aux)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tidevice/_instruments.py", line 360, in call_message
return self.wait_reply(_id).result
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tidevice/_instruments.py", line 550, in wait_reply
raise MuxError("connection closed")
tidevice.exceptions.MuxError: connection closed
git 上演示的脚本,udid 和 bundleId 都替换过了 运行就报这个错误 但后续还有正常的输出
写错了,没替换
取样了 50 秒,操作 app 非命令行执行, cpuUsage 指标没有输出记录