Monitor Network and File I/O

Source: Internet
Author: User
Tags stack trace disk usage

Monitor network and file input and output monitor networks and files I/O

The tool provides several analysis templates for monitoring the network and file I/O activities of an application. Instruments provides several profiling templates that monitor your app ' s network and file I/O activity.

Use the Activity Monitor to trace the entire network and disk using the use Activity Monitor to track Overall network and disk uses

The Activity Monitor profile template uses the Activity Monitor tool to track the entire system activity, including CPU, memory, network, and disk. By default, the Activity Monitor template does not display network or disk activity in the Timeline pane. However, you can manually enable the display of these statistics. The Activity Monitor profiling template uses the Activity Monitor instrument to track overall system activity over time, I Ncluding CPU, memory, network, and disk. By default, the activity Monitor template doesn ' t display network or disk Activity in the Timeline pane. However, you can manually enable the display of these statistics.

using the Activity Monitor to record network and disk usage to the record network and disks use with the Activity Monitor instrument
  1. Vehicle. Launch Instruments.

  2. In the Profiling Template selection dialog box that appears, click Activity Monitor. In the Profiling Template selection dialog that appears, click Activity Monitor.

  3. Select your devices and applications from the list of target devices and processes. Choose your device and app from the target device and process lists.

  4. Click Select to create the tracking document. Click Choose to create a trace document.

  5. Click the Activity Monitor tool in the Timeline pane. Click the Activity Monitor instrument in the Timeline pane.

  6. Reporter Command-2 Displays the inspector pane record settings. Press Command-2 to show record settings in the Inspector pane.

  7. In the statistics to list area, select the statistics that you want to view. Then, select them again in the system statistics area to enable them. In the ' Statistics to List ' area, select the Statistics-want to see. Then, select them again in the System Statistics area to enable them.

    The following statistics relate to file I/O: The following statistics pertain to file I/O:

      • Disk read operations (Operations) disks read OPS (operations)

      • Disk write operation diskette write ops

      • Number of bytes read by disk bytes read

      • Disk Write bytes bytes written

      • Reads disk operations per second disks read OPS per second

      • Disk write operations per second disks write OPS per second

      • Bytes read per second disk bytes read per second

      • Bytes written per second disk bytes written per second

    The following statistics relate to the network i/o:the following statistics pertain to networking I/O:

      • Network packet (received) NET packets in (Received)

      • NET packet (send) NET packets out (Sent)

      • NET byte net bytes in

      • NET byte net bytes out

      • NET packets per second net packets in per second

      • NET packets per second net packets out per second

      • Net bytes per second net bytes in per second

      • Net bytes per second net bytes out per second

  8. Click the Record button to start recording on the toolbar (or press command-r). Click the Record button () in the toolbar (or press command-r) to begin recording.

  9. Use your application normally. Use your app normally.

  10. Please click the "Stop" button, or press Command-r again when finished. Click the Stop button (), or press Command-r again, when complete.

  11. Check the collected data. Examine the collected data.

    The Timeline pane displays graphics that visually display the activity. Comprehensive activity information is found in the details pane. Select an example from the detail Type list in the navigation bar of the details pane to see all the data captured during the sampling period. Check the network and disk columns to determine the exact time when the activity is particularly high. These areas may be bulk trading for higher performance and energy efficiency. The Timeline pane displays graphs visually denoting activity. Comprehensive activity information is found in the Detail pane. Choose Samples from the detail Type list on the navigation bar of the Detail pane to see all data captured during the Samp Le period. Examine the network and disk columns to pinpoint times when activity is especially high. These may is areas where can batch transactions for greater performance and energy efficiency.

Monitor network connectivity for iOS Apps monitor web Connections of an iOS app

The network analysis template uses the Connect tool to analyze TCP/IP and UDP/IP connections for your iOS application. The Network profiling template uses the Connections instrument to analyze your IOS app ' s TCP/IP and UDP/IP Connections.

record the network connection used by the iOS app to the record networks connections used by your iOS app
  1. Connect your iOS device to your Mac. Connect your IOS device to your MAC.

    You can use a physical or wireless connection. See iOS devices for wireless objects. You can use a physical or wireless connection. See Target IOS Device wirelessly.

  2. Vehicle. Launch Instruments.

  3. In the Analysis Template selection dialog box that appears, click Network. In the Profiling Template selection dialog that appears, click Network.

  4. Select iOS devices and applications from the list of target devices and processes. Choose your IOS device and app from the target device and process lists.

  5. Click Select to create the tracking document. Click Choose to create a trace document.

  6. Click the Record button to start recording on the toolbar (or press command-r). Click the Record button () in the toolbar (or press command-r) to begin recording.

  7. Use your application normally. Use your app normally.

  8. Please click the "Stop" button, or press Command-r again when finished. Click the Stop button (), or press Command-r again, when complete.

  9. Check the collected data. Examine the collected data.

    Use the detailed type list in the navigation bar of the details pane to view information through processes, connections, or network interfaces (hardware). Use the detail Type list in the navigation bar of the Detail pane to view information by process, connection, or network I Nterface (Hardware).

Monitor disks in OS X using Monitor disk in OS X

The file Activity analysis template uses file activity, read/write, file properties, and directory I/O tools to monitor disk usage for your OS X applications. The file activity profiling template uses the file activity, reads/writes, file Attributes, and Directory I/O instruments To watch your OS X app's disk use.

record the file activity of your OS x application to the record the file activities of your OS x app
  1. Vehicle. Launch Instruments.

  2. In the Profiling Template selection dialog box that appears, click File Activity. In the Profiling Template selection dialog that appears, click File Activity.

  3. Select Mac and OS X applications from the list of target devices and processes. Choose your Mac and OS X app from the target device and process lists.

  4. Click Select to create the tracking document. Click Choose to create a trace document.

  5. Click the Record button to start recording on the toolbar (or press command-r). Click the Record button () in the toolbar (or press command-r) to begin recording.

  6. Use your application normally. Use your app normally.

  7. Please click the "Stop" button, or press Command-r again when finished. Click the Stop button (), or press Command-r again, when complete.

  8. Click a single tool in the Timeline pane to view their activities in the details pane. Click individual instruments in the Timeline pane to view their activity in the Detail pane.

    Each tool provides a list of events and a call tree that you can use to analyze specific instances of file activity. Each instrument provides an event list and a call tree, which you can use to analyze specific instances of file activity.

  9. In the details pane, select the event that you want to check. Select an event you want to inspect in the Detail pane.

  10. Reporter Command-3 Displays the event stack trace selected in the detail area of the inspector Pane extension. Press Command-3 to display a stack trace for the selected event in the extended detail area of the Inspector pane.

  11. Click the Collapse button in the extended detail area to hide the system call in the stack trace. This makes it easier to find the application's methods. Click the Collapse button () in the extended detail area-to-hide system calls in the stack trace. This makes it easier to locate your app ' s methods.

    The calls in your application are all black, preceded by a user code icon. Calls made by your app is colored black and preceded by a user code icon ().

  12. Double-click a method in the stack trace to display its code in the tool. Double-click a method in the stack trace to display its code in Instruments.

  13. Click the Xcode button at the top of the details pane to open code editing in Xcode. Click the Xcode button () at the top of the Detail pane to open the code in Xcode for editing.

Monitor Network and File I/O

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.