Datadog's .NET profiler has evolved to include memory usage profiling, enabling users to identify high CPU consumption from excessive garbage collection, pinpoint code responsible for memory allocations, and detect potential memory leaks by tracking surviving objects. This involves monitoring GC activity via CLR events, sampling allocations using the `AllocationTick` event, and tracking object lifetimes using weak handles and the `ICorProfilerInfo13` API. The system also addresses upscaling challenges by estimating real values based on sampled allocations and their sizes.
All Datadog trails