I was investigating an F# script running via FsiAnyCpu which was using a lot of memory. I took a heap snapshot using PerfView and it looks like the majority of high count nodes were rooted in FSharp.Compiler!Microsoft.FSharp.Compiler.Ilxgen+IlxAssemblyGenerator
. Before taking the snapshot, I forced a GC and froze the process for the duration.
The default exclusive view shows:
Is this to be expected?