gpt4 book ai didi

ios - 在 iOS 中获取 CPU 的 I/O 指标

转载 作者:行者123 更新时间:2023-11-28 08:10:36 24 4
gpt4 key购买 nike

我一直在 iOS 中寻找如下指标。但是还没有成功。作为这个 Unix 指标环境的新手,我真的很感激能得到任何初学者或帮助。谢谢。

1.system.io.util - CPU 等待 IO 操作完成的时间百分比。

2.system.cpu.iowait - 向设备发出 I/O 请求的 CPU 时间百分比

task_wait_state_info 的详细信息中,有一个结构可用,如下所示:

struct task_wait_state_info {
uint64_t total_wait_state_time; /* Time that all threads past and present have been in a wait state */
uint64_t total_wait_sfi_state_time; /* Time that threads have been in SFI wait (should be a subset of total wait state time */
uint32_t _reserved[4];
};


task_wait_state_info_data_t waittime;
NSLog(@"Wait time : %llu",waittime.total_wait_state_time);

这是否与 1.system.io.util 中的等待时间相同?

最佳答案

github 上有一个名为 GodEye 的软件项目,它的工作代码可以快速回答您的问题。看看:https://github.com/zixun/GodEye

•   monitor for the log and point out log type.
• monitor for the crash, include Uncatched Exception and Signal.
• monitor for the network, all information of request and response.
• monitor for the ANR, tell you the stacktrace of all threads.
• monitor for the memory leak, tell you the leak object's class name.
• a terminal for you to customized your commands and things what to do.
• monitor for the cpu usage of system and application.
• monitor for the ram usage of system and application.
• monitor for the FPS.
• monitor for the netflow of system and application.
• a file browser for look through the sandbox, .app and root directory.
• custom and runtime setting

关于ios - 在 iOS 中获取 CPU 的 I/O 指标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43895970/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com