还未发布过话题
  • 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 指标没有输出记录

  • 性能采集(类似 PerfDog)不过这块暂时只有 API 可以用。 大佬 这个 api 在哪边

  • thx

  • git 中 demo 获取单个应用 activity 数据 直接运行 没有结果展示 是什么原因