
.NET Continuous Profiler: Memory usage | Datadog
5/20/2024
This post details the implementation of memory usage profiling for Datadog's .NET profiler. It covers monitoring garbage collector CPU impact by analyzing CLR events and GC thread CPU consumption, tracking memory allocations using the `AllocationTick` event and current thread stack walking, and identifying surviving objects and memory leaks by employing `Weak` handles and monitoring object age. It also discusses the challenges of upscaling sampled memory data and a pitfall related to object address handling when creating `Weak` handles.


