NativeAOT and the Silhouette library enable building .NET CLR profilers using C# instead of C++. By deriving from base classes like CorProfilerCallbackBase and using the [Profiler] attribute, developers can create native profilers that hook into the CLR's unmanaged profiling APIs. The article demonstrates building a basic

16m read timeFrom andrewlock.net
Post cover image
Table of contents
What are the .NET profiling APIs?Who needs C when you have NativeAOT?Writing a .NET profiler in C#Testing our new profilerSummary

Sort: