Is there any way I can get .net stack traces in Sql Profiler, or a similar tool?

隐身守侯 提交于 2019-12-04 08:40:26

I am not sure if it will do excatly what you need but the best profiling tool i have found for .Net is ANTS Profiler, If i remember it will show you the SQL and also all the .net calls.

We have recently starting a tool called dynaTrace. There is a workstation verison that you can use on one box and a server/agent version for operating against many boxes.

Basically, you set up the tool against a particular application (or IIS). After that it will collect method calls that it is instrumented against. In your scenario you might instrument against entire namespaces and get everything.

Basically it then tracks every method call by using IL injection. It picks up the database calls by instrumenting against ADO.Net including the bind variables in SP's. It can apparently track across Web Service calls as well.

It is pretty cool in that you can look at specific methods, see all the paths that were made to call that method, or look at all calls to a method. You can look at a specific database call, and look at all the code paths with that call.

It's pretty cool.

gb2d

I've posted an answer here that brings together info from a couple of posts, plus an app that can be used as a poor mans query monitor for MySQL:

How can I view live MySQL queries?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!