2017-05-10 2 views
1

私は以下のようなiOSでメトリクスを探していましたが、まだ成功していません。このUnixメトリクス環境に新しいので、私は本当に始まりになるか、 。おかげさまで task_wait_state_infoの詳細はiOSのCPUのI/Oメトリックを取得する

1.system.io.util - The percent of time the CPU spent waiting for IO operations to complete.

2.system.cpu.iowait - The percent of CPU time during which I/O requests were issued to the device

以下のように利用できる構造体があります:

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と同じ待ち時間ですか?

答えて

0

github on githubと呼ばれるソフトウェアプロジェクトがあり、あなたの質問に答えるスピーディーなコードがあります。次をご覧ください: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 
関連する問題