VS 2008 Profiler - 显示堆栈底部的调用者/被调用者视图

发布于 2024-08-17 21:47:37 字数 346 浏览 3 评论 0原文

我目前正在尝试分析不同程序集中包含的类。为此,我创建了一个小型控制台应用程序,它调用我想要分析的类的公共入口点。这个入口点称为 Run()。

当我在调试模式下运行控制台应用程序时,这工作正常,并且我可以单步执行 Run() 方法。 Run() 方法调用其自己的程序集和其他程序集中的各种其他方法。但是,当我在 VS 2008 中创建一个“Instrumentation”类型的新探查器并运行该探查器时,报告显示我的 Main() 函数调用 Run(),但反过来,当查看我的 Run( 的调用者/被调用者报告时) ) 方法报告显示 Run() 方法位于堆栈底部。

显然情况并非如此——任何人都可以建议为什么会发生这种情况吗?

谢谢。

I am currently trying to profile a class contained in a different assembly. To do this I created a small console application which calls into the public entry point of the class I want to profile. This enrty point is called Run().

This is working fine when I run my Console application in Debug mode and I can step into the Run() method. The Run() method calls a variety of other methods in its own assembly and other assemblies. However, when I create a new profiler of type "Instrumentation" in VS 2008, and run the profiler, the report shows my Main() function calling Run(), but in turn, when viewing the Caller/Callee report for my Run() method the report shows that the Run() method is the bottom of the stack.

This is clearly not the case - could anyone please suggest why this is happening?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

血之狂魔 2024-08-24 21:47:37

我遇到了类似的问题,通过在与主服务程序集相同的输出目录中构建被调用的程序集来解决。我没有收到与探查器无法在不同的输出目录中找到被调用程序集相关的任何警告消息 - 这似乎是探查器的问题。

I had a similar problem which was solved by building the called assembly in the same output directory as the main service assembly. I didn't receive any warning messages associated with the profiler being unable to locate a called assembly in a different output directory - which seems to be an issue with the profiler.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文