VC Profiler Attach .net and C++ Mix Application

最近写的程序,界面用的WPF,底层用的C++。

在用VS 2008 的profiler测试性能的时候,只能看到C++的消耗,看不到.net 那边的。

The profiling environment for ***** is not set up correctly. Use vsperfclrenv.cmd to setup environment variables

换了 VS 2010也不行

查了资料:

http://blogs.msdn.com/b/profiler/archive/2009/12/07/vs2010-attaching-the-profiler-to-a-managed-application.aspx

http://blogs.msdn.com/b/davbr/archive/2009/11/04/clr-v4-profiler-attach-basics-with-sample-code.aspx

大概意思,要Profiler Managed Application:

1、程序先运行,然后attach,需要 CLR V4-based runtimes,否则是分析不了性能的

2、可以通过Launch Performance Wizard 来启动要分析的程序。这样.Net和C++部分的代码运行情况都可以分析到


好吧,我要分析的程序不是CLR V4-based runtimes,暂时只能用第二种方法了



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值