create,save,and open tarce documents

创建、保存和打开跟踪文档

Create a trace document

创建跟踪文档
You need to create a trace document to begin profiling with Instruments.
您需要创建一个跟踪文档来开始使用仪器进行分析。
1.Launch Instruments.
发射仪器。
2.In the profiling template selection dialog that appears, select a target device and process.
在出现的分析模板选择对话框中,选择目标设备和进程。

3.Select the desired profiling template.
在出现的分析模板选择对话框中,选择目标设备和进程。

4. Click Choose.
单击选择。
A new document is created with the preconfigured instruments from the template you chose.
将使用所选模板中的预配置仪器创建新文档。
Tip: To automatically begin profiling your app immediately after creating the trace document, hold down the Option key in the profiling template selection dialog. When you do this, the Choose button changes to Profile. Click Profile to create the document and initiate profiling right away.
提示:要在创建跟踪文档后立即自动开始评测应用程序,请按住评测模板选择对话框中的选项键。执行此操作时,“选择”按钮将更改为“配置文件”。单击“配置文件”以创建文档并立即启动配置文件。
If you can’t find a template to meet your needs or you just want to create your own from scratch, select the Blank template in the profiling template selection dialog.
如果找不到满足需求的模板,或者只想从头开始创建自己的模板,请在剖析模板选择对话框中选择空白模板。

Save a trace document

保存跟踪文档
Once you’ve created a trace document, you can save it for later reference. Instruments saves trace documents as Instruments trace files with the .trace extension.
创建跟踪文档后,可以将其保存以供以后参考。Instruments将跟踪文档保存为扩展名为.trace的Instruments跟踪文件。

  • Create a trace document. See Create a trace document.
    创建跟踪文档。请参见创建跟踪文档。
  • Choose File > Save. Or, choose File > Save As if you want to save a previously saved trace document as a new file.
    选择文件>保存。或者,如果要将以前保存的跟踪文档另存为新文件,请选择文件>另存为。
  • Enter a name for the file.
    输入文件的名称。
  • Choose a destination for the file.
    选择文件的目标。
  • Click Save.
    单击保存。

Save a trace document as a profiling template

将跟踪文档另存为分析模板
If you create a trace document you think you might need again for profiling other apps, you can save it as a custom template so you don’t have to recreate it each time you run Instruments.
如果您创建了一个跟踪文档,您认为可能需要再次对其他应用程序进行评测,那么您可以将其保存为自定义模板,这样您就不必在每次运行Instruments时重新创建它。

  • Create or open a trace document. See Create a trace document.
    创建或打开跟踪文档。请参见创建跟踪文档。
  • Choose File > Save As Template.
    选择文件>另存为模板。
  • Enter a name for the template.
    输入模板的名称。
  • Choose a destination for the template.
    选择模板的目标。
  • Save your template in the /Users//Library/Application Support/Instruments/Templates directory to make it available in the custom section of the Instruments template window. This is the default directory in the Save As Template dialog.
    将模板保存在/Users//Library/Application Support/Instruments/Templates目录中,以使其在Instruments template窗口的custom部分可用。这是“另存为模板”对话框中的默认目录。
  • Select an icon for the template.
    为模板选择一个图标。
  • Enter a description for the template.
    输入模板的说明。
  • Click Save.
    单击保存。
    Once you save a template, it automatically appears in the profiling template selection dialog, grouped with the Custom templates. Next time you create a trace document, you can select it as your starting point.
    保存模板后,它将自动显示在“分析模板选择”对话框中,并与自定义模板分组。下次创建跟踪文档时,可以选择它作为起点。

Open a trace document

打开跟踪文档
Open saved trace documents to view results from previous runs or to perform additional profiling.
打开保存的跟踪文档以查看以前运行的结果或执行其他分析。
Do one of the following to open a trace document:

执行以下操作之一以打开跟踪文档:

  • Double-click the .trace document file in the Finder.
    双击Finder中的.trace文档文件。

  • Drag the .trace document file onto the Instruments app icon.

将.trace文档文件拖到Instruments应用程序图标上。

  • Open Instruments and perform the following steps:

打开仪器并执行以下步骤:

  1. Choose File > Open (or press Command-O).

选择文件>打开(或按Command-O)。

  1. Locate a saved .trace document file.

找到保存的.trace文档文件。

  1. Click Open.
    单击“打开”。

The trace document opens in Instruments.
跟踪文档将在Instruments中打开。

Close a trace document

关闭跟踪文档
Close a trace document when you’re done working with it.
处理完跟踪文档后,请将其关闭。


Choose File > Close (or press Command-W).
选择文件>关闭(或按Command-W)。

If your document contains unsaved data, select whether to save the updated document.
如果文档包含未保存的数据,请选择是否保存更新的文档。


The document closes.
文件关闭。

Instrument(二)相关推荐

  1. Instruments概述

    本文内容来自于学习<instrument user guide> 一.启动方式 xcode:Xcode > Open Developer Tool > Instruments ...

  2. Java字节码instrument研究

    MyAgent项目 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="h ...

  3. android cts测试二

    转宋立新大牛的博客 Android CTS 测试研究 宋立新 , Android , 博客 , CTS , 研究 Android CTS 测试研究 前言¶ 从各种渠道了解到 Android CTS 测 ...

  4. java入参为方法_Java命令注入原理结合Java Instrument技术(FreeBuf首发)

    一.前言 命令注入:恶意用户构造恶意请求,对一些执行系统命令的功能点进行构造注入,从而达到执行命令的效果. 二.演示环境搭建 这里采用springboot+swagger搭建一个模拟的web环境:启动 ...

  5. python设计一个函数定义计算并返回n价调和函数_音乐编程语言musicpy教程(第三期) musicpy的基础语法(二)...

    这个是我在github上给我的项目musicpy写的wiki,分为数据结构,基础语法,实际应用三大部分来为大家讲解这门音乐编程语言,主要是想给大家写一个musicpy的详细的教程与介绍,目前wiki只 ...

  6. IOS7实现扫描二维码

    简介: 这里介绍在IOS7 中使用AVFoundation扫描二维码 在 iOS7 以前,在iOS中实现二维码和条形码扫描,我们所知的有,两大开源组件ZBar与ZXing. 这两大组件我们都有用过,这 ...

  7. ios7 苹果原生二维码扫描(和微信类似)

    在ios7苹果推出了二维码扫描,以前想要做二维码扫描,只能通过第三方ZBar与ZXing. ZBar在扫描的灵敏度上,和内存的使用上相对于ZXing上都是较优的,但是对于 "圆角二维码&qu ...

  8. English——限定性定语从句与非限定性定语从句(二)

    限定性定语从句与非限定性定语从句 非限定性定语从句的作用是对所修饰的成分作进一步说明(注:通常和主句间用逗号隔开,不受主句句子结构的影响,将从句拿掉后其他部分仍可成立) 语法 1. that不能用于引 ...

  9. 第十二章_网络搭建及训练

    文章目录 第十二章 网络搭建及训练 CNN训练注意事项 第十二章 TensorFlow.pytorch和caffe介绍 12.1 TensorFlow 12.1.1 TensorFlow是什么? 12 ...

最新文章

  1. 软件开发过程中的回顾
  2. [CODEVS] 2189 数字三角形W
  3. 秋冬季节吃什么水果好
  4. markdown 编辑器_Markdown 编辑器使用指南
  5. 工厂员工晋升机制_维修厂如何设置员工晋升机制?
  6. Pandas 文本数据方法 join( )
  7. Python Tricks(六)—— 删除一个可迭代序列中等于某值的全部元素
  8. VS 工程只生成dll不生成lib的解决方案
  9. cisco产品命名规则
  10. 贝叶斯网络(概率图模型)
  11. CSS 实现水晶按钮特效 - 来自 www.codesc.net
  12. 【中国剩余定理】互素与不互素的情况详解
  13. C语言 输入一个正整数,判断它是素数还是合数
  14. OracleBBED工具说明
  15. Qt 多国语言部分翻译不能成功加载的原因探索
  16. 关于Excel表格的导入
  17. c语言课程设计图像处理,摄影与图像处理课程设计
  18. Kafka入门(一)
  19. 高德h5地图api接口_H5,JS中使用微信、高德获取定位
  20. bind错误:server can't find www.linuxprobe.com: SERVF

热门文章

  1. 带您一起探索关于水利工程施工堤坝防渗加固技术
  2. 【IT之路】微信小程序之初探
  3. uniapp消息推送超详细(从开通uniPush到测试成功)
  4. 中小学和幼儿园教师资格考试大纲(试行) (面试部分)
  5. arcmap 警告位置空间参考或空间参考与数据框不匹配问题
  6. asp.net web应用程式的网站搭建及发布
  7. 学SQL,要安装什么软件?
  8. python函数var是求什么_copula函数及其Var计算的Python实现
  9. 用Python进行图像模糊处理和特征提取
  10. js 等待几秒 每隔几秒 执行