首页 > 解决方案 > 如何在不检查应用代码的情况下监控ios的进程、内存、GPU?

问题描述

有没有什么工具可以帮助我和ios沟通,知道它的Memory、cpu、process,就像xcode的Instruments一样?</p>

虽然我知道 xcrun xctrace可以得到我想要的数据,但我不能使用 python 解码它。

标签: pythonios

解决方案


使用“ xcrun xctrace export”解码跟踪文件。

描述:使用提供的查询将给定的 .trace 导出为 XML 文件格式,以后可以读取和后处理

例如:

xcrun xctrace export --input recording.trace --output recording.xml --xpath '/trace-toc/run[@number="1"]/data/table[@schema="activity-monitor-process-ledger"]'

推荐阅读