[英]How to use a profiler to see why databinding is slow?
When I run my application in debug mode, setting the databinding is very slow (about 20 seconds). 当我在调试模式下运行应用程序时,设置数据绑定非常慢(大约20秒)。 When I run my application without the debugger, I have no performance issues.
在没有调试器的情况下运行应用程序时,没有性能问题。 It works as expected.
它按预期工作。
But you can imagine, that when I run the program in debug mode, it is very annoying that everything is so slow. 但是您可以想象,当我在调试模式下运行程序时,一切都变得如此缓慢非常令人讨厌。 So I was wondering what is causing this.
所以我想知道是什么原因造成的。 I thought maybe I can do something with the profiler, but I don't know excatly how.
我以为也许我可以使用Profiler进行某些操作,但是我不知道怎么做。
Can you help me with this? 你能帮我吗?
I would step into te debugger when it's loading the DataSource. 加载数据源时,我将进入调试器。 What happens then, do you see it debugging .net framework code?
然后会发生什么,您是否看到它正在调试.net框架代码?
If you are using sql server I would use sql server profiler 如果您使用的是sql server,则可以使用sql server profiler
If you don't, but you use nhibernate I would use nhibernate profiler 如果不这样做,但是您使用nhibernate,我将使用nhibernate profiler
Other tips: 其他提示:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.