简体   繁体   English

Qt:使用Instruments(Mavericks)在OS X上进行分析

[英]Qt: Profiling on OS X using Instruments (Mavericks)

I've been trying to profile an application I've written under OS X Mavericks using Instruments following various bits of information I've found online but I'm not able to get any information out of it. 我一直试图用我在网上找到的各种信息来描述我在OS X Mavericks下使用Instruments编写的应用程序,但是我无法从中获取任何信息。 I've tried making sure I've got the latest version of Instruments, I'm running Qt 5.1.1, and Instruments will actually work for profiling Allocations and Leaks, just not for Time Profiling. 我已经尝试确保我有最新版本的仪器,我正在运行Qt 5.1.1,而仪器实际上可用于分析分配和泄漏,而不是用于时间分析。

Has anyone managed to get the CPU time profiling working with Mavericks? 有没有人设法让CPU时间分析与Mavericks合作?

EDIT: As it turns out whilst I thought installing the latest version of XCode would give me the latest version of Instruments, it had also left the previous version of Instruments installed. 编辑:事实证明,虽然我认为安装最新版本的XCode会给我最新版本的仪器,它也已经安装了以前版本的仪器。

As per your realization, it seems XCode will leave the previous Instruments installed. 根据您的意识,似乎XCode将保留以前的仪器安装。 I would personally follow the following steps: 我个人会按照以下步骤操作:

  • Remove old version. 删除旧版本。

  • Remove the data left behind. 删除留下的数据。

  • Install the new version. 安装新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM