有没有办法分析 WCF 应用程序的性能?
我们正在尝试测量我们的系统的性能,该系统是一个使用 WCF 调用的 .NET 3.5 应用程序。
问题是到目前为止,我们无法分析这些调用中的方法。编写了一个 winforms 客户端应用程序来测试我们的系统。我们尝试使用ANTS 4 Profiler和VS2008内置的性能分析器,但我们只得到了WCF调用的总时间。我们希望能够测量 WCF 调用内部进行的所有调用。
有人知道这是否可能吗?
提前致谢。
We're trying to measure performance of our system, which is a .NET 3.5 application that uses WCF calls.
Problem is until now, we weren't able to profile the methods inside these calls. A winforms client application was coded to test our system. We tried using ANTS 4 Profiler and VS2008 built-in Performance Analyzer, but we only got the total time of the WCF call. We would like to be able to measure all the calls that are being made inside of the WCF call.
Does anybody know if that's possible?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Visual Studio Team System Test Edition 中内置了相当多的性能测试功能。
看看这个 页面并向下滚动到负载测试简介部分。
此外,此 WCF Codeplex 上的负载测试应用程序 可能会有所帮助
There is quite a bit of performance testing functionality built into Visual Studio Team System Test Edition.
Take a look on this page and scroll down to the section Introduction to Load Tests.
Also this WCF Load Test application on codeplex might be helpful
因此,您的应用程序可以在 VS 下运行,但 WCF 调用了一个您无法获得分析可见性的环境,但您想知道那里发生了什么?
即使您了解 WCF 如何在其内部使用时间,您所做的任何更改也必须在代码中进行。如果您想了解代码中的哪些位置可以提高性能,您可以使用 VS 分析器。就我个人而言,我只使用 stackshots,它非常有效找出在任何环境下要优化的代码,包括 C#。
So your application can run under VS, but WCF calls off to an environment where you cannot get profiling visibility, but you want to know what goes on in there?
Even if you find out how WCF uses time inside itself, any changes you make will have to be in your code. If you want to find out where in your code you can do something about performance, you can use the VS profiler. Personally, I just use stackshots, which are very effective at finding out what code to optimize under any environment, including C#.