Launch Instruments

Launch Instruments

该仪器应用在Xcode应用程序,所以推出是在Xcode的最直接的方式。你也可以启动它间接地通过码头,启动,或命令行。The Instruments app lives inside the Xcode app, so the most direct way to launch it is from within Xcode. You can also launch it indirectly via the Dock, Launchpad, or the command line.

从Xcode启动仪器Launch Instruments from Xcode

启动仪器的最直接的方式是通过在Xcode Xcode菜单。The most direct way to launch Instruments is via the Xcode menu in Xcode.

从Xcode菜单启动仪器To launch Instruments from the Xcode menu
  1. Open Xcode.

  2. Choose Xcode > Open Developer Tool > Instruments.

    image: ../Art/xcode_instruments_menu_2x.png

TIP

您可以使用此方法启动许多其他有用的开发工具。You can use this method to launch a number of other useful development tools.

你也可以启动仪器以剖面的程序你都积极致力于在Xcode。You can also initiate Instruments in order to profile an app you are actively working on in Xcode.

打开Xcode项目简介To profile an opened Xcode project
  1. 启动Xcode打开你的项目。Launch Xcode and open your project.

  2. Do one of the following:

    • Choose Product > Profile.

      image: ../Art/xcode_product_profile_menu_2x.png
    • Click and hold the Run button in the Xcode toolbar and choose Profile.

      image: ../Art/xcode_toolbar_profile_menuitem_2x.png
    • Press Command-I.

Xcode创建你的项目,仪器的推出,并会提示你选择一个仿形模板。Xcode builds your project, Instruments launches, and you’re prompted to select a profiling template.

如果你需要用相同的模板定期您的应用程序配置文件,你可以设置你的Xcode项目自动用它当你启动分析。If you need to profile your app with the same template regularly, you can set up your Xcode project to automatically use it whenever you initiate profiling.

建立一个Xcode项目使用特定的仪器分析模板To set up an Xcode project to use a specific Instruments profiling template
  1. 启动Xcode打开你的项目。Launch Xcode and open your project.

  2. Choose Product > Scheme > Edit Scheme.

    image: ../Art/xcode_product_scheme_edit_scheme_menu_2x.png

    或者,在Xcode工具栏的格式弹出菜单,选择“编辑方案。Or, from the Scheme pop-up menu in the Xcode toolbar, choose Edit Scheme.

    image: ../Art/xcode_toolbar_target_edit_scheme_menu_2x.png

    Or, press Command–Less Than (<).

    The scheme editor dialog appears.

    image: ../Art/xcode_scheme_editor_dialog_2x.png
  3. Click Profile in the sidebar of the scheme editor dialog.

    image: ../Art/xcode_scheme_editor_profile_option_2x.png
  4. 在“信息”下,单击“工具弹出”菜单并选择所需的分析模板。Under Info, click the Instrument pop-up menu and choose the desired profiling template.

    image: ../Art/xcode_scheme_editor_instrument_popup_2x.png

    如果你chooseask发射,仪器显示其仿形模板选择对话框,在启动时。If you chooseAsk on Launch, Instruments displays its profiling template selection dialog when it starts up.

  5. Click Close.

  6. 启动分析。请打开Xcode项目简介。Initiate profiling. See To profile an opened Xcode project.

Xcode创建你的项目,仪器的推出,并开始分析您的应用程序与你的模板配置方案编辑。Xcode builds your project, Instruments launches, and it begins profiling your app with the template you configured in the scheme editor.

从码头发射仪器Launch Instruments from the Dock

仪器可在码头的Xcode图标启动。Instruments can be launched from the Xcode icon in the Dock.

从码头的Xcode图标启动仪器To launch Instruments from the Xcode icon in the Dock
  1. Open Xcode.

  2. Control-click the Xcode icon in the Dock, and then choose Options > Open Developer Tool > Instruments from the shortcut menu.

    image: ../Art/dock_xcode_contextualmenu_instruments_2x.png

The Instruments app launches.

You can also add Instruments to your Dock for quick access. The quickest way to do this is to launch Instruments and then set it to stay in the Dock.

永久地添加仪器到您的码头To permanently add Instruments to your Dock
  1. Open Xcode.

  2. Choose Xcode > Open Developer Tool > Instruments.

    image: ../Art/xcode_instruments_menu_2x.png

    Instruments launches and its icon appears in your Dock.

    image: ../Art/instruments_app_icon_small_2x.png
  3. Control-click the Instruments icon in the Dock, and then choose Options > Keep in Dock from the shortcut menu.

    image: ../Art/instruments_dock_contextual_menu_options_keepindock_2x.png

Launch Instruments from Launchpad

启动自动显示驻留在您的应用程序文件夹的应用程序。由于仪器不在应用程序文件夹(至少不是直接在Xcode,它是在应用程序文件夹),它没有出现在Launchpad。但是,您可以通过为工具创建一个别名并将其放入应用程序文件夹中来添加它。Launchpad automatically displays apps that reside in your Applications folder. Because Instruments isn’t in the Applications folder (at least, not directly—it’s in Xcode, which is in the Applications folder), it doesn’t appear in Launchpad. However, you can add it by creating an alias to Instruments and putting it in your Applications folder.

To add Instruments to Launchpad
  1. Open Xcode.

  2. Choose Xcode > Open Developer Tool > Instruments.

    image: ../Art/xcode_instruments_menu_2x.png

    Instruments launches and its icon appears in your Dock.

    image: ../Art/instruments_app_icon_small_2x.png
  3. Control-click the Instruments icon in the Dock, and then choose Options > Show in Finder from the shortcut menu.

    image: ../Art/instruments_dock_contextual_menu_options_2x.png
  4. Option-Command-drag the Instruments app icon in the Finder to your Applications folder.

    An alias of Instruments is created and added to your Applications folder.

  5. Remove the alias suffix from the filename of the Instruments alias.

    Instruments now appears in Launchpad.

    image: ../Art/launchpad_instruments_2x.png

Launch Instruments from the Command Line

You can use the open command to launch any app in OS X via Terminal.

To launch Instruments using the open command line tool
  1. Launch Terminal (in /Applications/Utilities/).

  2. Run the following command:

    open /Applications/Xcode.app/Contents/Applications/Instruments.app

The Instruments app launches.

NOTE

您还可以使用两个命令行实用工具来对应用程序进行概要分析,而不必实际显示仪器用户界面。You can also use either of two command-line utilities to profile an app without actually displaying the Instruments user interface.

  • 工具实用程序使用指定的模板描述应用程序。结果可以保存到一个文件中,然后在主仪表应用程序中手动打开以便查看和分析。有关使用信息,请参见带有仪器和仪表的配置文件(1)Mac开发人员工具手册页。instruments—This utility profiles an app using a specified template. The results can be saved to a file and then manually opened in the main Instruments app for viewing and analysis. For usage information, see Profile with instruments and instruments(1) Mac OS X Developer Tools Manual Page.

  • iprofiler这个工具监视应用程序使用活动监视器、拨款、计数器、事件探查器、泄漏,系统跟踪,和/或时间剖面。结果被保存到一个文件。地面可以打开仪器在观察和分析以后。使用信息收集和iprofiler看到iprofilerand数据视图(1)Mac OS X开发者工具手册页。iprofiler—This tool monitors an app using Activity Monitor, Allocations, Counters, Event Profiler, Leaks, System Trace, and/or Time Profiler. The results are saved into a .dtps file that can be opened in Instruments at a later time for viewing and analysis. For usage information, see Collect and view data with iprofilerand iprofiler(1) Mac OS X Developer Tools Manual Page.

转载于:https://www.cnblogs.com/zyingn/p/Instruments_Launch.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/541221.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

java clock计时_Java Clock类| offset()方法与示例

java clock计时Clock Class offset()方法 (Clock Class offset() method) offset() method is available in java.time package. offset()方法在java.time包中可用。 offset() method is used to generate a new Clock from the given base clock with added the given Duratio…

dataframe数据标准化处理_数据处理中的标准化、归一化究竟是什么?

关注上方“Python数据科学”&#xff0c;选择星标&#xff0c;精彩文章不会错过&#xff01;今天说一个比较重要的内容&#xff0c;无论是在算法建模还是在数据分析都比较常见&#xff1a;数据归一化和标准化。开始之前&#xff0c;请你先把网上看到的所有相关的博客、帖子都忘…

北航计算机学院博士机试考试题,北航2015考博真题回忆及全套资料 - 考博 - 小木虫 - 学术 科研 互动社区...

我是2015年毕业的应届硕士&#xff0c;报考了北航经管院的博士。想写这篇文很久了&#xff0c;现在复试完等最后结果中&#xff0c;把自己一路走来的经验分享给大家。1.报名报名之前很重要的一点就是联系导师。我是研二下&#xff0c;快放暑假了才开始联系导师。北航一般是11月…

用了Redis里面的map和set

map的操作用 hset&#xff0c;hget等 set的操作有 sadd sismember等 参考下面&#xff1a; http://blog.csdn.net/kwsy2008/article/details/48467441

java输出不同颜色_Java设计模式-策略模式、状态模式

推荐阅读&#xff1a;一只Tom猫&#xff1a;都是“Redis惹的祸”&#xff0c;害我差点挂在美团三面&#xff0c;真是“虚惊一场”&#xff01;java喵&#xff1a;6大面试技能树&#xff1a;JAVA基础JVM算法数据库计算机网络操作系统前言当代码中出现多重if-else语句或者switch语…

c++stl和std_std :: rotate()函数以及C ++ STL中的示例

cstl和stdC STL std :: rotate()函数 (C STL std::rotate() function) rotate() function is a library function of algorithm header, it is used to rotate left the elements of a sequence within a given range, it accepts the range (start, end) and a middle point,…

计算机硬盘正在工作应特别注意避免,初级计算机考试题库

计算机的初级基本*作包括基本信息栏、计算机的基础知识、五笔字型基础、*互联网的*作、常用办公外设的使用、计算机硬件的日常维护与保养和office办公工具的应用。下面是初级计算机考试题库&#xff0c;请参考&#xff01;1.以下与信息有关的设备计算中&#xff0c;用于存储信息…

abap 添加alv上的工具栏的按钮_神器必会!“世界上最好的编辑器Source Insight”...

前言“Source Insight(以下简称SI)是世界上最好的编辑器”&#xff0c;说这句话不知道会不会出门被打呢&#xff1f;-_- 中国古话说得好&#xff0c;“文无第一&#xff0c;武无第二”&#xff0c;所以不敢说SI是最好的&#xff0c;但是说是“最好的之一”绝对是妥妥的。它以丰…

SLF4J with Logback in a Maven Project | Mograblog

SLF4J with Logback in a Maven Project | Mograblog

Ruby中带有示例的Hash.key?(value)方法

Hash.key&#xff1f;(value)方法 (Hash.key?(value) Method) In this article, we will study about Hash.key?(value) Method. The working of the method cant be assumed because its quite a different name. Let us read its definition and understand its implementa…

计算机课伤害事故的防范,体育课安全伤害事故的防范与处理

摘 要&#xff1a;近年来&#xff0c;在教育改革的背景下&#xff0c;学校方面特别重视体育教学这一环节。做好体育教学工作&#xff0c;一方面能够使学生达到强身健体的目的&#xff0c;另一方面能够使学生的综合素质水平得到有效提升。然而&#xff0c;在体育课中还会发生一些…

同一个容器实例可以同时运行在多个宿主机_从零开始学K8s: 3.什么是容器

Kubernetes使用Linux容器技术来实现应用的隔离。因此在深入学习k8s之前&#xff0c;我们需要先学习容器的基础知识以便更好地去理解k8s的原理机制。揭开容器的神秘面纱当一个应用只由较少数量的大组件构成时&#xff0c;完全可以给每个组件分配一个专用的虚拟机&#xff0c;以及…

__str__是什么函数_PHP str_shuffle()函数与示例

__str__是什么函数PHP str_shuffle()函数 (PHP str_shuffle() Function) str_shuffle() function is a string function and it is used to shuffle all characters randomly in the string. str_shuffle()函数是一个字符串函数&#xff0c;用于随机地随机排列字符串中的所有字…

SpringBoot集成RabbitMq消息队列【附源码】

1. 项目背景 要啥项目背景&#xff0c;就是干&#xff01;&#xff01;&#xff01; SpringBoot版本&#xff1a;2.7.12 2. Rabbit MQ安装 这里讲解使用docker安装RabbitMQ&#xff0c;如果在windows下面安装RabbitMQ&#xff0c;参考下文 【笑小枫的按步照搬系列】Window…

【云栖直播】精彩推荐第3期:个性化推荐系统搭建实践

热门推荐 &#xff08;1&#xff09;即将直播持续集成与交付&#xff1a;分层自动化之UI自动化体系建设直播简介&#xff1a;本系列直播由阿里旗下一站式研发提效平台云效策划推出&#xff0c;主要为大家详细介绍阿里巴巴在持续集成和持续交付的最佳实践。 直播讲师&#xff1a…

全国计算机等级考试和cct区别,全国计算机等级考试(NCRE)和CCT的区别你了解多少?...

在大学&#xff0c;很多学生都在纠结&#xff0c;到底学什么技能在以后的就业中能够提升自己的核心竞争力。在众多等级考试中&#xff0c;全国计算机等级考试可以说是相对热门的考试。关于计算机等级考试&#xff0c;一共有两种&#xff0c;一类是全国高等学校计算机水平考试(C…

ensp路由器无法启动_品胜云路由器Breed刷入详细教程,技巧和注意事项,功能大增...

前面发文&#xff0c;介绍过品胜净音云路由器WFR101N功能&#xff0c;硬件配置参数&#xff0c;高清拆解图。主要硬件参数&#xff1a;闪存型号是W25Q128FVSG&#xff0c;容量大小是16M&#xff1b;内存是华邦的W9751G6KB-25&#xff0c;DDR2 SDRAM内存&#xff0c;大小64M&…

第二个冲刺期的第六天

昨天写好了购物车的功能&#xff1b; 今天决定开始写下订单的功能&#xff1b; 明天的话继续写下订单的功能&#xff1b; 遇到的问题&#xff1a;由于购物车是用session实现的&#xff0c;所以生成订单的话会遇到一些问题&#xff0c;比如说订单条目往数据库的写入。 &#xff…

chunk_split_PHP chunk_split()函数与示例

chunk_splitPHP chunk_split()函数 (PHP chunk_split() function) chunk_split() function is used to split the given string into chunks of small parts, it accepts the string returns the parts of the strings specified by the other parameters. chunk_split()函数用…

对计算机视觉研究的认识,计算机视觉(作业)

视觉是各个应用领域&#xff0c;如制造业、检验、文档分析、医疗诊断&#xff0c;和军事等领域中各种智能&#xff0f;自主系统中不可分割的一部分。由于它的重要性&#xff0c;一些先进国家&#xff0c;例如美国把对计算机视觉的研究列为对经济和科学有广泛影响的科学和工程中…