且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

NET Framework问题(不允许附加探查器)

更新时间:2023-10-15 09:06:46

denautn,

Hi denautn,

当您附加到某个进程时,该进程本身不知道事件探查器,并且.NET Memory Profiler API方法未处于活动状态(即MemProfiler.IsProfiling将返回false).若要使用MemProfiler和MemAssertion方法,必须启动已配置的 通过分析器进行处理(例如,通过使用Profile Application,Profile ASP.NET或Profile Service).由于没有提及该文档,因此显然缺少该文档.但是,此信息将在以后的版本中添加.

When you attach to a process, the process itself is not aware of the profiler, and the .NET Memory Profiler API methods are not active (i.e. MemProfiler.IsProfiling will return false). To use the MemProfiler and MemAssertion methods, you must start the profiled process from the profiler (e.g. by using Profile Application, Profile ASP.NET or Profile Service). The documentation is apparantly lacking since it does not mention this. But this information will be added in a future release.

有关此的更多信息,您可以参考-  http://memprofiler.com/forum/viewtopic .php?t = 883

For more information on this, you can refer - http://memprofiler.com/forum/viewtopic.php?t=883