性能向导始终会给出错误 [英] Performance Wizard always gives an error

查看:63
本文介绍了性能向导始终会给出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Visual Studio 2015中进行性能分析.我遵循的文档(不能发布链接)清楚:

I'm trying to to performance profiling in Visual Studio 2015. Document I follow(can't post link) clearly:

  1. 在调试"菜单上,单击启动调试工具而无需调试".

  1. On the Debug menu, click Start Diagnostic Tools Without Debugging.

选中性能向导"选项,然后单击开始".

Check the Performance Wizard option, and click Start.

选中"CPU采样(推荐)"选项,然后单击完成".

Check the CPU Sampling (recommended) option and click Finish.

您的应用程序启动,并且探查器开始收集数据.

最后一点不会发生.相反,我总是收到错误消息:

This last point doesn't happen. Instead I am always getting error message:

Performance Session file instrtest2.psess does not exist or is invalid.

它反复抱怨创建的.psess文件.只是添加带数字的后缀,以避免名称冲突.

The .psess file it's complaining is created again and again. It's just adding suffix with numbering, to avoid name collision.

我正在使用v14.0.25123.00 Update 2.可能是一些错误吗?任何人都可以成功运行此工具并且可以共享秘密吗?

I'm using v14.0.25123.00 Update 2. Could it be some bug? Anyone succeeded to run this tool and can share secrets?

推荐答案

您好soourn2,

Hi souren2,

您使用了哪个VS2015版本?您配置了哪种应用?

Which VS2015 version did you use? Which kind of app did you profile?

>> 4.选中"CPU采样(推荐)"选项,然后单击完成".

>>4. Check the CPU Sampling (recommended) option and click Finish.

不要点击完成";直接,请点击下一步"按钮,然后选择一个如下图所示的应用程序,我只创建了一个简单的空白Winform应用程序.

Not click "Finish" directly, please click "Next" button, and then select an application like the following screen shot, I just create a simple blank Winform app.

点击下一步"再次,选择向导完成后启动性能分析",然后单击完成",然后它将启动应用程序并收集性能数据,关闭应用程序,我将正常获得结果.效果很好 在我这边使用VS2015社区的更新2或VS2015企业版的更新2.

Click "Next" again, select "Launch profiling after the wizard finishes", and then click "finish", and then it will start the app and collect the performance data, close the app, I will get the result normally. It works well in my side using the VS2015 community with update 2 or the VS2015 Enterprise version with update 2. 

(1)在配置应用程序之前,请先对其进行清理和重建,请将模式更改为应用程序的发布模式,当然,请以管理员身份打开VS.

(1) Please clean and rebuild your app before you profile it, please change the mode to be the release mode for your app, of course, please open your VS as the admin.

(2)您可以使用一个简单的示例(例如我上面的WinForm示例)对其进行测试,因此我们可以知道它是否与配置步骤有关,还是与应用程序本身有关.

(2) You could test it using a simple sample like my above WinForm sample, so we could know that whether it is related to the profiling steps or the app itself.

最好的问候,

Jack


这篇关于性能向导始终会给出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆