asp.net - 在 Linux 和 Visual Studio Code 中分析 dotnet core

标签 asp.net .net visual-studio-code .net-core

有没有办法在 Linux 和 Visual Studio Code 中为 dotnet 核心应用程序执行 CPU 和内存分析? 类似于Visual Studio 2017的“诊断工具”

最佳答案

https://github.com/dotnet/core/issues/1647

Q: So, Visual Studio has profiling tools to help you optimize your .Net Core projects. I was wondering if this is possible to do on Linux or macOS.

REPLY: @doyouevensunbro, Visual Studio doesn't have any profiling tools that work with .NET Core on Linux. At the current time, we recommend collecting performance data on Linux using perf. Instructions are available at https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/linux-performance-tracing.md.

We're also working on exposing a .NET-centric profiler using functionality called EventPipe in CoreCLR. There's not much documentation on the subject yet.

另请参阅:

Profiling .NET Core app on Linux

There’re multiple tools to use out there, but the basic toolkit for profiling .NET Core app on Linux seems to be perf utility along with lttng and perfcollect. Let’s have a look at all of them.

还有:

Bringing .NET application performance analysis to Linux

关于asp.net - 在 Linux 和 Visual Studio Code 中分析 dotnet core,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53419264/

相关文章:

vue.js - 文件名与仅在套管中已包含的文件名不同。Vetur(1149)

angular - angular-cli.json 中 node_modules 路径的 Intellisense?

c# - 展示装置中继器

c# - 使用 C# 在 ASP.Net 中处理大量文件时出现 ERR_EMPTY_RESPONSE

c# - 从 global.asax vs quartz.net 运行定时器

c# - Visual Studio 即时窗口 - 不允许使用 Lambda 表达式 - 是否有解决方法或替代方法?

c# - 如何在 C# 中使用 BCL 拆分字符串而不丢失分隔符?

c# - 从 Html.TextBoxFor 获取值

c# - Windows 搜索服务器快捷版

flutter - 使用 VS Code 发布 Flutter 的应用程序