Hacker News new | ask | show | jobs
by 0b01 2009 days ago
If you program on Windows you should check out Event Tracing for Windows(ETW). Similar to eBPF, ETW is a logging framework inside Windows kernal. Microsoft.Diagnostics.Tracing.TraceEvent[0] is a nice nuget package for logging and analyzing ETL files.

[0]https://github.com/microsoft/perfview/blob/master/documentat...

1 comments

But only after reading this glorious and funny article about using ETW for logging thread context switches. https://caseymuratori.com/blog_0025
Thankfully all of this native API is abstracted away in C#.