.NET分析API方法 [英] .Net Profiling API approaches

查看:161
本文介绍了.NET分析API方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一种感觉,我可能已经知道这个问题的答案,但我会问反正。

I have a feeling I may already know the answer to this question, but I'll ask it anyway.

是否有任何的的使用.net分析API比COM /托管C ++路线的方式?

Are there any better ways of using the .Net Profiling API than the COM/Managed C++ route?

我不愿遵循建议的COM方法是这样:

My reluctance to follow the suggested COM approach is as such:

  • 在努力,它的上手了很多跑腿
  • 请不要喜欢参与挂钩的C ++动态链接库的魔力,不容易重新分配与项目
  • 感觉很难单元测试
  • 请不要想在C ++中的行为。我可以创建一个互操作层,但是这更多的工作
  • 难以调试。从我收集的,你不能一个调试器附加到实际的C ++层,所以你又回到了日志文件和这样

我碰到一个叫 NProf 的项目,这是企图包裹与管理层的API。不幸的是它没有被自2003年以来已更新

I came across a project called NProf, which was an attempt to wrap the API with a managed layer. Unfortunately it hasn't been updated since 2003.

没有人有任何线索可能帮助?这一切都只是感觉有点讨厌。

Does anyone have any leads that might help? This all just feels a bit nasty.

澄清:

  • 在此介绍的API我指的是:的分析API
  • 在我使用Visual Studio中的框架
  • 2008年,和V3.5
  • This describes the API I'm referring to: The Profiling API
  • I'm using Visual Studio 2008, and v3.5 of the framework

推荐答案

您可以看看在部分覆盖。这是一个code覆盖工具(GPL),但它的工作方式类似于NCover,这意味着它使用分析API来完成其工作。不知道有多好或坏的code是和,有多少帮助,这将是对你(GPL可能是一个问题,也是),但它的东西,你可能想看一看。它已经更新,在去年年底,然后沉默了,所以我不知道,如果该项目仍处于活动状态。

You can take a look at Part-Cover. It's a code coverage tool (GPL) but it works similarly to NCover, which means it uses profiling API to do its job. Not sure how good or bad the code is, and of how much help it'll be for you (GPL may be an issue as well), but its something you may want to take a look at. It's been updated late last year and then went silent, so I'm not sure if the project is still active.

这篇关于.NET分析API方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆