



parent child information)-----父進程和子進程的關(guān)系,以及各個進程的概要信息



TotalVMSize、CPUTotalLoad、CPUUserLoad、CPUSystemLoad,在使用時可以根據(jù)自己的需要選擇相關(guān)的分析內(nèi)容進行顯示,并且不同的內(nèi)存使用部分可以使用不同的顏色加以區(qū)分,下面就是Activity Monitor在使用過程中的界面截圖,在右下角可選擇內(nèi)存相關(guān)的分析內(nèi)容。
Examining Memory Usage with the Activity Monitor Trace Template
The Activity Monitor trace template monitors overall system activity and statistics, including CPU, memory, disk, and network. It consists of the Activity Monitor instrument only, although you can add additional instruments to a trace document you’ve created with the template, if you desire. You’ll see later that the Activity Monitor is also used to monitor network activity on iOS devices.
The Activity Monitor instrument captures information about the load on the system measured against the virtual memory size. It can record information from a single process or from all processes running on the system. The Activity Monitor instrument provides you with four convenient charts for a quick, visual representation of the collected information. The two charts that specifically describe memory usage are:
Real Memory Usage (bar graph). Shows the top five real memory users in a bar graph.
Real Memory Usage (pie chart). Shows the top five real memory users with the total memory used displayed.
下圖為Activity Monitor instrument with charts

The Record Settings area in the inspector sidebar includes a list of system statistics, which can be configured to appear in the track pane and graphically represent collected data. Select a statistic’s checkbox to see it graphed in the track pane. Click the shape or the color well to change how a statistic appears in the track pane.

There are a number of statistics the Activity Monitor instrument supports, but the following ones are memory-specific:
Physical Memory Wired
Physical Memory Active
Physical Memory Inactive
Physical Memory Used
Physical Memory Free
Total VM Size
VM Page In Bytes
VM Page Out Bytes
VM Swap Used
If one of the statistics above doesn’t appear under System Statistics, locate it under “Select statistics to list” and click its checkbox to include it in the list.

CPUTtotalLoad
CPUUserLoad
CPUSystemLoad
CPUNiceLoad

By default, the Activity Monitor template isn’t set up to display network activity. Therefore, you need to enable the desired network-related statistics in the Record Settings area in the inspector sidebar for the Activity Monitor instrument to see which processes are sending and receiving information.

There are a number of statistics the Activity Monitor instrument supports, but the following ones are network-specific:
Net Packets In
Net Bytes In
Net Packets Out
Net Bytes Out
Net Packets In Per Second
Net Packets Out Per Second
Net Bytes In Per Second
Net Bytes Out Per Second
If one of the statistics above doesn’t appear under System Statistics in the Record Settings inspector, locate itunder “Select statistics to list” and click its checkbox to include it in the list.
Once you have gathered network activity for your app, examine it carefully to pinpoint areas where your app is sending out excessive amounts of information and therefore tying up valuable device resources. When you minimize the amount of information sent and received, you can benefit from increased performance and response times in your app.
下圖為Activity Monitor instrument tracing network packets
小白學(xué)習(xí)instrument之Activity Monitor
Monitor Memory Usage Using Activity Monitor
轉(zhuǎn)載請注明出處:http://www.survivalescaperooms.com/JuneWang/p/4789910.html新聞熱點
疑難解答