zoukankan      html  css  js  c++  java
  • Profiling Templates

    仿形模板Profiling Templates

    在工具,您将使用仿形模板来分析你的应用程序(见图26-1)。仿形模板是一个跟踪文件已经预先配置了仪器设置进行微量的常见类型。仿形模板可用当您启动工具,创建一个新文档,或启动一个跟踪从Xcode。如果您有更高级或定制的需求,也可以创建自己的模板。In Instruments, you’ll use profiling templates to analyze your app (see Figure 26-1). A profiling template is a trace document that has been preconfigured with instruments and settings for performing a common type of trace. Profiling templates are available when you launch Instruments, create a new document, or initiate a trace from Xcode. You can also create your own templates if you have more advanced or custom needs.

    Figure 26-1工具剖析模板选择对话框The Instruments profiling template selection dialogimage: ../Art/instruments_profilingtemplateselection_dialog_2x.png

    Blank Profiling Template

    image: ../Art/templateBlank_48_2x.png

    这是一个没有任何工具的空白分析模板。如果您找不到满足您需要的模板,或者您想完全控制使用什么工具和配置设置来配置应用程序,请选择此模板。This is a blank profiling template containing no instruments. Select this template if you can’t find a template to meet your needs, or if you want full control over what individual instruments and configuration settings are used to profile your app.

    NOTE

    默认的仿形模板工具已经预先调整以满足在典型的情况下,大多数开发人员的需要。建议您使用它们作为起点。如有必要,您可以向任何分析模板添加附加工具并调整仪器设置。如果您确实调整了分析模板并认为有时可能需要相同的设置,则可以将修改后的文档保存为自定义模板。The default profiling templates in Instruments have been preconfigured and fine tuned to meet the needs of most developers in typical situations. It is recommended that you use them as starting points. If necessary, you can add additional instruments to any profiling template and adjust instrument settings. If you do adjust a profiling template and think you might need the same settings again sometime, you can save the modified document as a custom template.

    有些工具不被任何标准分析模板所使用。要使用这些工具,必须使用空白模板创建跟踪文档,然后将所需的工具添加到其中。有关这些仪器的列表,请参见不包括在标准分析模板中的仪器。Some instruments aren’t used by any of the standard profiling templates. To use these instruments, you must create a trace document using the blank template, and then add the desired instruments to it. See Instruments Not Included in Standard Profiling Templates for a list of these instruments.

    活动监视器剖析模板Activity Monitor Profiling Template

    image: ../Art/templateActivityMonitor_48_2x.png

    此模板监视指定进程或进程的整体CPU、内存、磁盘和网络使用统计信息。此模板可与OS X或iOS一起使用。This template monitors the overall CPU, memory, disk, and network usage statistics of the specified process or processes. This template may be used with OS X or iOS.

    模板中包含的仪器Instruments Included in Template

    配置仿形模板Allocations Profiling Template

    image: ../Art/templateAllocations_48_2x.png

    此模板跟踪指定进程的匿名虚拟内存和堆。它提供类名和可选地保留和释放对象的历史记录。此模板可与OS X或iOS一起使用。This template tracks the anonymous virtual memory and heap of a specified process. It provides class names and, optionally, retain and release histories for objects. This template may be used with OS X or iOS.

    模板中包含的仪器Instruments Included in Template

    可可布局剖析模板Cocoa Layout Profiling Template

    image: ../Art/templateCocoaLayout_48_2x.png

    此模板观察对布局约束对象的更改,以确定布局约束何时和何处不按预期工作。此模板只能与OS X一起使用。This template observes changes made to layout constraint objects in order to determine when and where a layout constraint is not working as intended. This template may be used with OS X only.

    模板中包含的仪器Instruments Included in Template

    核心动画剖析模板Core Animation Profiling Template

    image: ../Art/templateCoreAnimator_48_2x.png

    此模板使用时间剖面来测量应用程序中的图形性能和CPU使用率。此模板只能与iOS一起使用。This template uses time profiling to measure graphics performance and CPU usage in an app. This template may be used with iOS only.

    模板中包含的仪器Instruments Included in Template

    核心数据分析模板Core Data Profiling Template

    image: ../Art/templateCoreData_48_2x.png

    这个模板中的数据终端的核心活动的文件系统,包括高速缓存未命中,和保存。该模板可用于与OS X只。This template monitors Core Data activity in the file system, including fetches, cache misses, and saves. This template may be used with OS X only.

    仪器包括在模板Instruments Included in Template

    计数器模式模板Counters Profiling Template

    image: ../Art/templateCounters1_48_2x.png

    此模板使用时间或基于事件的采样方法监视计数器(PCM)事件。此模板只能与OS X一起使用。This template monitors counter (PCM) events using time- or event-based sampling methods. This template may be used with OS X only.

    模板中包含的仪器Instruments Included in Template

    能量测井剖面模板Energy Log Profiling Template

    image: ../Art/templateEnergyDiagnostics1_48_2x.png

    此模板收集关于能源使用和主要硬件部件的开启/关闭状态的诊断,如蓝牙和wi-fi。此模板描述设备行为,而不是单个应用程序行为。此模板只能与iOS一起使用。This template gathers diagnostics regarding energy usage and the on/off state of major hardware components, such as Bluetooth and Wi-Fi. This template profiles device behavior, not individual app behavior. This template may be used with iOS only.

    Instruments Included in Template

    NOTE

    仪器还包括位置能量模型仪器,它可以用来监视应用程序的核心位置请求的能量影响。Instruments also includes Location Energy Model Instrument, which may be used to monitor the energy impact of your app’s Core Location requests.

    遵循iOS应用程序的能效指南和Mac应用程序的能效指南,以确保应用程序中的最佳能源保护,并帮助您的使用达到全天电池寿命和一个伟大的用户体验。Follow the guidelines in Energy Efficiency Guide for iOS Apps and Energy Efficiency Guide for Mac Apps to ensure optimal energy conservation in your app and help your uses achieve all-day battery life and a great user experience.

    文件活动分析模板File Activity Profiling Template

    image: ../Art/templateFileActivity_48_2x.png

    此模板监视文件和目录活动,包括文件打开和关闭、权限修改、目录创建、文件移动等等。此模板只能与OS X一起使用。This template monitors file and directory activity, including file opens and closes, permission modifications, directory creation, file moves, and more. This template may be used with OS X only.

    模板中包含的仪器Instruments Included in Template

    泄漏分析模板Leaks Profiling Template

    image: ../Art/templateLeaks_48_2x.png

    此模板测量一般内存使用情况并检查漏内存。它按类提供对象分配的统计数据,以及所有活动分配和漏块的内存地址历史记录。此模板可与OS X或iOS一起使用。This template measures general memory usage and checks for leaked memory. It provides statistics on object allocations by class, as well as memory address histories for all active allocations and leaked blocks. This template may be used with OS X or iOS.

    模板中包含的仪器Instruments Included in Template

    金属系统痕迹分析模板Metal System Trace Profiling Template

    image: ../Art/templateMetalSystemTrace_48_2x.png

    这template概况的性能金属凹陷应用by提供tracing信息从应用,司机,和layers GPU。这template可能用与唯一的凹陷。This template profiles the performance of iOS Metal applications by providing tracing information from the application, driver, and GPU layers. This template may be used with iOS only.

    工具都包括在templateInstruments Included in Template

    IMPORTANT

    工具在金属系统的痕迹profiling template是用于不到用individually外本template,或在该rearranged template。The instruments in the Metal System Trace profiling template are not intended to be used individually outside of this template, or rearranged within the template.

    网络profiling templateNetwork Profiling Template

    image: ../Art/templateNetwork_48_2x.png

    这个模板分析了TCP / IP和UDP / IP连接的应用程序使用一年。This template analyzes the TCP/IP and UDP/IP connections an app uses. This template may be used with iOS only.

    仪器included in模板Instruments Included in Template

    OpenGL ES分析分析模板OpenGL ES Analysis Profiling Template

    image: ../Art/templateOpenGLESAnalysis_48_2x.png

    该模板对OpenGL ES活动进行度量和分析,以识别性能和其他OpenGL ES问题,并提供解决这些问题的建议。此模板可与OS X或iOS一起使用。This template measures and analyzes OpenGL ES activity in order to identify performance and other OpenGL ES problems, and offer recommendations for resolving them. This template may be used with OS X or iOS.

    模板中包含的仪器Instruments Included in Template

    系统跟踪剖析模板System Trace Profiling Template

    image: ../Art/templateSystemTrace_48_2x.png

    此模板提供有关系统行为的全面信息。它显示线程何时调度,并通过系统调用和内存操作显示线程从用户到系统代码的线程转换。此模板可与OS X或iOS一起使用。This template provides comprehensive information about system behavior. It shows when threads are scheduled, and shows thread transitions from user to system code via system calls and memory operations. This template may be used with OS X or iOS.

    模板中包含的仪器Instruments Included in Template

    • Points of Interest

    • System Load

    • Thread State Trace

    • Virtual memory Trace

    • System Call Trace

    系统使用概要模板System Usage Profiling Template

    image: ../Art/templateSystemUsage_48_2x.png

    此模板监视应用程序并记录与文件、套接字和共享内存相关的系统I/O活动。这包括输入,输出,时间回溯,调用树,多打一次电话。此模板只能与iOS一起使用。This template monitors an app and records system I/O activity related to files, sockets, and shared memory. This includes inputs, outputs, duration, backtrace, call tree, and more for each call. This template may be used with iOS only.

    模板中包含的仪器Instruments Included in Template

    时间分析器概要模板Time Profiler Profiling Template

    image: ../Art/templateTimeProfiler_48_2x.png

    此模板执行运行过程的低开销时基采样。此模板可与OS X或iOS一起使用。This template performs low-overhead time-based sampling of running processes. This template may be used with OS X or iOS.

    模板中包含的仪器Instruments Included in Template

    僵尸仿形模板Zombies Profiling Template

    image: ../Art/templateZombies_48_2x.png

    这个模板测量应用程序的一般内存使用情况,重点是检测被释放的对象,称为僵尸。它按类提供对象分配的统计数据,以及活动分配的内存地址历史记录。此模板可与OS X或iOS一起使用。This template measures general memory usage of an app, focusing on the detection of over-released objects, known as zombies. It provides statistics on object allocations by class, as well as memory address histories for active allocations. This template may be used with OS X or iOS.

    模板中包含的仪器Instruments Included in Template

    不包括在标准分析模板中的仪器Instruments Not Included in Standard Profiling Templates

    下列工具不在任何标准分析模板中使用。如果需要使用其中一个工具,可以使用空白分析模板创建跟踪文档,并将该工具从库调色板添加到文档中。或者,使用标准的分析模板并添加所需的工具。在跟踪文档中添加一个工具。The following instruments are not used in any of the standard profiling templates. If you need to use one of these instruments, create a trace document using the Blank Profiling Template and add the instrument to the document from the Library palette. Or, use a standard profiling template and add the desired instrument to it. See Add an Instrument to a Trace Document.

    Xcode表模板Xcode Gauge Templates

    Xcode包含一些额外的分析模板,如CPU,内存,磁盘,和能源网络。这些模板可以用于在某些情况下对应用程序进行概要分析。它们包含特定套仪器的设置旨在让您诊断具体的问题你可以在Xcode中运行你的应用程序时遇到的。请注意,这些模板不出现在标准模板的工具列表中。他们通过在Xcode的表访问。看到从Xcode计简介在调试过程中学习如何使用这些模板,您的应用程序配置文件。Xcode includes some additional profiling templates, such as CPU, energy, memory, disk, and network. These templates can be used to profile your app in certain situations. They contain specific sets of instruments and settings designed to allow you to diagnose specific problems you may encounter while running your app from within Xcode. Note that these templates don’t appear in the Instruments list of standard templates. They are accessed via the gauges in Xcode. See Profile from Xcode gauges while debugging to learn how to profile your app using one of these templates.

  • 相关阅读:
    C# 系统应用之通过注册表获取USB使用记录(一)
    web项目测试方法总结
    C#面向对象编程实例-猜拳游戏
    c#基础这些你都看过吗?(一)-----仅供初学者使用
    .NET事件监听机制的局限与扩展
    SQL代码
    泛型接口委托
    存储过程
    小操作
    DataGridView
  • 原文地址:https://www.cnblogs.com/zyingn/p/Profiling_Templates.html
Copyright © 2011-2022 走看看