IL重写技术
Really Easy Logging using IL Rewriting and the .NET Profiling API
https://www.codeproject.com/articles/17275/really-easy-logging-using-il-rewriting-and-the-net
ILRewriting for beginners
Runtime IL-Rewriting can be used to add behavior such as logging to applications, or redirect calls from one API to another. This article and accompanying source code explains how to substitute a method call at runtime.
框架
https://github.com/OpenCover/opencover
APM
https://www.appdynamics.com/
https://newrelic.com
Creating a Custom .NET Profiler
https://www.codeproject.com/articles/15410/creating-a-custom-net-profiler