Is it possible to measure the memory pressure caused by the program, and how many times does the GC run in the background?
Yes, using . Network performance counters .