1. 程式人生 > >About Instruments

About Instruments

tail 部分 fig files pan 獨立 oge osi within

About Instruments

Instruments是一個強大的和靈活的性能分析和測試工具的Xcode工具集的一部分。它的目的是幫助您配置您的OS X和iOS應用程序、進程和設備,以便更好地理解和優化他們的行為和性能。從應用程序開發過程的開始將工具集成到您的工作流中,可以幫助您在開發周期的早期找到問題。Instruments is a powerful and flexible performance-analysis and testing tool that’s part of the Xcode tool set. It’s designed to help you profile your OS X and iOS apps, processes, and devices in order to better understand and optimize their behavior and performance. Incorporating Instruments into your workflow from the beginning of the app development process can save you time later by helping you find issues early in the development cycle.

技術分享

在儀器中,您使用專門的工具,即儀器,來跟蹤應用程序、進程和設備的不同方面。儀器收集數據作為它的概況,並向您詳細介紹分析結果。In Instruments, you use specialized tools, known as instruments, to trace different aspects of your apps, processes, and devices over time. Instruments collects data as it profiles, and presents the results to you in detail for analysis.

與其他性能和調試工具不同,工具允許您收集大量不同類型的數據,並並排查看它們。這使得識別可能被忽略的趨勢變得更容易。例如,應用程序可能會顯示由於多個開放網絡連接而導致的大量內存增長。通過使用分配和連接工具一起,您可以識別不關閉的連接,從而導致快速的內存增長。Unlike other performance and debugging tools, Instruments allows you to gather widely disparate types of data and view them side by side. This makes it easier to identify trends that might otherwise be overlooked. For example, your app may exhibit large memory growth caused by multiple open network connections. By using the Allocations and Connections instruments together, you can identify connections that are not closing and thus resulting in rapid memory growth.

通過有效地使用儀器,您可以:By using Instruments effectively, you can:

  • 檢查一個或多個應用程序或進程的行為Examine the behavior of one or more apps or processes

  • 檢查設備特定的功能,如Wi-Fi和藍牙Examine device-specific features, such as Wi-Fi and Bluetooth

  • 在模擬器或物理設備上執行概要分析Perform profiling in a simulator or on a physical device

  • 創建自定義的DTrace儀器分析方面的系統和應用程序的行為Create custom DTrace instruments to analyze aspects of system and app behavior

  • 跟蹤源代碼中的問題Track down problems in your source code

  • 對應用程序進行性能分析Conduct performance analysis on your app

  • 查找應用程序中的內存問題,如泄漏、廢棄內存和僵屍Find memory problems in your app, such as leaks, abandoned memory, and zombies

  • 找出優化你的應用程序以提高電源效率的方法Identify ways to optimize your app for greater power efficiency

  • 執行一般系統級故障排除Perform general system-level troubleshooting

  • 將工具配置保存為模板Save instrument configurations as templates

雖然它是嵌入在可使用Xcode,工具是一個單獨的應用程序,這可能需要使用獨立。Although it’s embedded within and may be used with Xcode, Instruments is a separate app, which may be used independently as needed.

About Instruments