监控.NET主题主题、NET

2023-09-03 11:36:37 作者:天上仙

有什么方法来监测/登录.NET运行库很像做的VisualVM对Java线程交互?我没有在目前的特殊需要,但我认为这将是很好,看看如何在我的应用程序中的所有线程交互。

Is there any way to monitor/log thread interactions in the .NET runtime much like VisualVM does for Java? I don't have a specific need at the moment but I think it would be nice to see how all the threads in my application interact.

推荐答案

我不熟悉VisualVM的在Java中......但是......

I am unfamiliar with VisualVM in Java....but....

如果你想做到这一点编程...检查出的WMI性能计数器。我目前正在与他们自己!

If you are trying to accomplish this programmatically...check out the WMI Performance Counters. I am currently working with them myself!

MSDN链接到WMI性能计数器

记住的如果你想看到的性能计数器,使用Visual Studio .NET中的服务器资源管理器。你可以看到所有的性能计数器机器(或给定机),以及相关的属性上。

Remember If you are trying see the performance counters, use the server explorer in Visual Studio .NET. You can see all of the performance counters on your machine (or a given machine), and their related properties.

有关性能计数器值检索,看看这个链接: MSDN链接,计数器值检索

For performance Counter Value retrieval, check out this link: MSDN link for Counter Value Retrieval

有关更改和检索性能计数器值的演练,看看这个链接: MSDN链接更改/检索性能计数器值

For a walkthrough on Changing and Retrieving Performance Counter Values, check out this link: MSDN link for Changing/Retrieving Performance Counter Values

如果你并不想以编程方式做到这一点,如果你只是想查看Windows性能监视器工具(性能监视器),则必须从控制面板(在性能)的管理工具菜单中调用它... .OR ....要打开性能监视器,只要到了开始菜单,选择运行并键入perfmon。

If you're not trying to do this programmatically, and if you simply want to view the Windows Performance Monitor tool (Perfmon), you must invoke it from the Administrative Tools menu of the Control Panel (Under Performance)....OR....To open PerfMon, just go to the Start Menu, choose Run and type perfmon.

这是对视觉监控线程和进程的强大工具。这不是做编程,虽然,是更多的行政和观看的目的,而不是建立信息/工具的.NET应用程序使用/检索。在性能监视器工具几乎等同于您的文章的VisualVM工具的截屏/影像。

This is a great tool for visually monitoring threads and processes. This is not done programatically though, and is more for administration and viewing purposes, rather than building the information/tools for a .NET application to use/retrieve. The Perfmon tool is almost identical to the screenshot/image of the VisualVM tool in your post.

下面是一个链接到Windows性能监视器:十大计数器:

Here is a link to Windows Perfmon: The Top Ten Counters:

性能监视器链接

希望这可以帮助把你在正确的方向......干杯!

Hopefully this can help put you in the right direction...cheers!