xcode 有人成功地在山狮上使用 OpenGL 分析器吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12640841/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:40:58  来源:igfitidea点击:

Did someone succeed in using OpenGL profiler on mountain lion?

xcodeopenglprofilerosx-mountain-lion

提问by david sillou

When running OpenGL profiler on mac os X mountain lion, the "attach to application" list remains empty.

在 mac os X 山狮上运行 OpenGL 分析器时,“附加到应用程序”列表保持为空

Launching an app is possible, but then, trying to open OpenGL driver monitor, i get : "Unable to launch or attach to application (null)" message.

启动应用程序是可能的,但是,然后,尝试打开 OpenGL 驱动程序监视器,我收到:“无法启动或附加到应用程序(空)”消息。

I'm using :

我正在使用 :

  • xcode 4.5
  • openGL profiler from Graphics Tools (downloaded from apple dev site)
  • Xcode 4.5
  • 图形工具中的 openGL 分析器(从苹果开发站点下载)

I have tested this on 2 different macbook pro.

我已经在 2 个不同的 macbook pro 上对此进行了测试。

Edit: The version of Graphics Tools for Xcode i m using doesn't seem to be the last one available. Unfortunately, this is the only one i get on apple dev downloads! screenshot

编辑:我使用的 Xcode 图形工具版本似乎不是最后一个可用的版本。不幸的是,这是我在苹果开发者下载中唯一获得的!截屏

m i missing something ?

我错过了什么?

Solved: I was using a wrong (not renewed) apple dev account to access the download page. I had no warning nor error message, just outdated files for download.

已解决:我使用错误(未更新)的 Apple 开发帐户访问下载页面。我没有警告或错误消息,只是过时的文件可供下载。

I wish Apple added a simple message like : "Warning : you are logged in with an expired account. Please be aware that you are NOT accessing up to date resources".

我希望 Apple 添加一条简单的消息,例如:“警告:您使用过期帐户登录。请注意,您没有访问最新资源”。

Thanks everybody for the help. I could have spent a whole week with this stupid mistake.

谢谢大家的帮助。我本可以在这个愚蠢的错误上度过整整一个星期。

Ps: I can't answer the question myself because I lack reputation.

ps:我自己无法回答这个问题,因为我缺乏声誉。

Edit: I managed to get a more recent file but it now appears to me that it's NOT the last one.

编辑:我设法获得了一个更新的文件,但现在在我看来它不是最后一个。

Edit : I finally got the August version of Graphics tools for Xcodebut i must admit i don't understand the logic behind Apple's dev account management.

编辑:我终于得到了 Xcode 图形工具的 8 月版本,但我必须承认我不理解 Apple 开发帐户管理背后的逻辑。

File version i get at https://developer.apple.com/downloads/:

我在https://developer.apple.com/downloads/获得的文件版本:

  • Fresh free dev account --> MarchGraphics Tools for Xcode
  • ios paid program dev account --> JuneGraphics Tools for Xcode
  • old dev account (not renewed ios paid program) --> AugustGraphics Tools for Xcode
  • 全新的免费开发者帐户 --> Xcode 的March图形工具
  • ios 付费程序开发帐户--> June Graphics Tools for Xcode
  • 旧开发帐户(未更新的 ios 付费程序)--> Xcode 的August图形工具

回答by Mortennobel

I have just installed the newest OpenGL Profiler (Version 4.7 (3)) (Graphics Tools for Xcode - August 2012) on my new MacBook Pro Retina with XCode 4.5 and Mountain Lion and it works seamlessly.

我刚刚在我的带有 XCode 4.5 和 Mountain Lion 的新 MacBook Pro Retina 上安装了最新的 OpenGL Profiler(版本 4.7 (3))(Xcode 图形工具 - 2012 年 8 月),它可以无缝运行。

The Graphics Tools can be found at https://developer.apple.com/resources/(OSX -> Downloads):

图形工具可以在https://developer.apple.com/resources/找到(OSX -> 下载):

enter image description here

在此处输入图片说明

I tried to profile a GLFW using OpenGL 3.2 (Core profile) and Google Chrome running some WebGL stuff. And both cases worked as expected.

我尝试使用 OpenGL 3.2(核心配置文件)和运行一些 WebGL 内容的 Google Chrome 来配置 GLFW。这两种情况都按预期工作。

Edit: I have now successfully tried running the profiler on another MBP (late 2011) also using Mountain Lion and again with success. I did not follow the guide from Apple to setup the environment as theAmateurProgrammer suggested, but I believe the OpenGL Profiler does that behind the scenes when answering "Enable" to the dialog below (appears when launching the program). One minor thing is that programs to profile must be started after OpenGL Profiler Attaching is enabled.

编辑:我现在已经成功地尝试在另一个 MBP(2011 年末)上运行分析器,也使用 Mountain Lion,并再次成功。我没有按照 Apple 的指南按照业余程序员的建议设置环境,但我相信 OpenGL Profiler 在对下面的对话框(在启动程序时出现)回答“启用”时会在幕后这样做。一件小事是必须在启用 OpenGL Profiler Attaching 后启动分析程序。

I was also able to profile Firefox running WebGL, but Safari gave some problems.

我还能够分析运行 WebGL 的 Firefox,但 Safari 出现了一些问题。

enter image description here

在此处输入图片说明

回答by TheAmateurProgrammer

Follow the guidefrom Apple to setup the environment necessary to use OpenGL Profiler.

按照Apple的指南设置使用 OpenGL Profiler 所需的环境。