是否有如何自定义 .NET 4.0 分析器的示例?
我知道有一个用于探查器 2.0 的: http://www.codeproject.com/KB/ dotnet/dotnetprofiler.aspx 但是 .NET 4.0 中的探查器 API 发生了变化,我们需要考虑进程内并行问题。我需要一个例子来定制我们自己的分析器。有人知道吗?谢谢!
I know there is one for profiler 2.0: http://www.codeproject.com/KB/dotnet/dotnetprofiler.aspx
But the profiler API has changed in .NET 4.0 and we need to consider in-process side by side issues. I need an example to customize our own profiler. Anyone knows that? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有实际的示例,但是 这篇文章正是关于您的问题。另请查看他的博客的其余部分,有更多关于 4.0 分析器(以及一般分析器)的帖子。
顺便说一句,在链接博客文章的评论部分中,他说官方 4.0 分析器源代码尚未准备好,但一旦准备好,他会发布相关信息。 (虽然这是 4 个月前的事了。)
编辑: CLRProfiler 4.0 刚刚发布并包含源代码,因此您得到了示例;-)
I don't have an actual example, but this post is exactly about your question. Also check out the rest of his blog, there are more posts about 4.0 profilers (and profilers in general).
By the way, in the comments section of the linked blog post he says the official 4.0 profiler source is not ready, but when it is he'll post about it. (Though this was 4 months ago or something.)
Edit: CLRProfiler 4.0 just got released and includes source code, so you got your sample ;-)