.net-traceprocessing

How to process Heap traces?


Heap traces are some of the heaviest traces ETW can capture, and would be interesting to handle that through .net-trace processing.

Is it possible currently to get this data, or is it not supported?

I only see a UseHeapSnapshots() which, if I understand correctly, has to do with Heap Snapshots, not heap data capture.


Solution

  • Currently we do not have any special built-in support for these events, however you can still find these events in GenericEvents (which contains all Manifested and TraceLogging events in the trace) or in ClassicEvents (which contains all Classic and WPP events), or by writing an EventConsumer (see the Extensibility section of https://blogs.windows.com/buildingapps/2019/05/09/announcing-traceprocessor-preview-0-1-0/ for an example).