How Does CLR Profiler Work?
Posted guangfengli
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How Does CLR Profiler Work?相关的知识,希望对你有一定的参考价值。
In order to use a profiler properly, you need to understand how the data was collected and the limitations of the tool. The CLR Profiler uses a special interface to the runtime that allows it to get callbacks when particular events happen within the runtime (msdn.microsoft.com/library/ms404511.aspx). Currently, this interface can be used only if the process being profiled is started with certain environment variables set that inform the runtime regarding the contact mechanism to the profiler. Thus, there are some limitations, such as the inability to attach to an existing process. CLR Profiler must start the process with the right environment variables set. For services that are typically started by the OS directly, like ASP.NET, special procedures have to be followed (see CLR Profiler.doc from the download for details). As an aside, for certain scenarios we have added API support for attach in the .NET Framework 4 (but only the API support; support for attaching the CLR Profiler tool will follow soon after).
https://msdn.microsoft.com/en-us/library/ms404511.aspx
以上是关于How Does CLR Profiler Work?的主要内容,如果未能解决你的问题,请参考以下文章
The version of SOS does not match the version of CLR you are debugging
[转载] How Many Partitions Does An RDD Have
How does a single thread handle asynchronous code in JavaScript?