[英]Is it possible to attached an ANTS Performance Profiler to an already running IISExpress process?
I'm trying to figure out how to attach an ANTS profiler to an already running IISExpress instance. 我试图弄清楚如何将ANTS探查器附加到已经运行的IISExpress实例上。
When I try to manually do that, it keeps saying that the port is already in use, which of course is obvious. 当我尝试手动执行此操作时,总是说该端口已在使用中,这当然是显而易见的。 But why is ANTS trying to start up a new instance when I just said attach ? 但是当我刚才说attach时,为什么ANTS尝试启动一个新实例?
Why do I want to do this? 我为什么要这样做? Because my start up is slow and yes, I know one can just highlight the area in the timeline that I care about, but I'm curious if this is possible none-the-less. 因为我的启动很慢,是的,所以我知道人们可以在我关注的时间轴上突出显示该区域,但是我很好奇这是否仍然可行。
You should be able to connect to IIS Express the same as any other process. 您应该能够像连接其他任何进程一样连接到IIS Express。 Redgate's has a guide to setting it up here . Redgate的指南在此处进行设置。
All you should need to do is click the tab on the left that says "Attach to .NET 4 process", and pick out iisexpress.exe
from the list. 您所需要做的就是单击左侧的标签为“附加到.NET 4进程”,然后从列表中选择iisexpress.exe
。
It's not possible to add instrumentation to a process that's already been started, so you lose a lot of precision this way, as well as the ability to tie profiling data to individual requests. 不可能在已经启动的流程中添加工具,因此您将失去很多精度,并且无法将概要分析数据绑定到单个请求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.