Andrew Lock 12/16/2025

Creating a .NET CLR profiler using C# and NativeAOT with Silhouette

Read Original

This technical article explores creating a simple .NET CLR profiler using C#, the Silhouette library, and NativeAOT. It explains the .NET profiling APIs, demonstrates how to log assembly loads, and discusses the benefits of using NativeAOT to compile the profiler to a native binary instead of writing C/C++ code.

Creating a .NET CLR profiler using C# and NativeAOT with Silhouette

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
2
Container queries are rad AF!
Chris Ferdinandi 2 votes
3
Wagon’s algorithm in Python
John D. Cook 1 votes
5
Top picks — 2026 January
Paweł Grzybek 1 votes
6
In Praise of –dry-run
Henrik Warne 1 votes