You need to use a memory profiler.
There are free ones as well as commercial ones, some of the better known are the ANTS Memory Profiler by RedGate, dottrace by JetBrains and memprofiler by SciTech.
These all essentially hook into the running process measuring things like memory usage and more - giving you a report on the application performance and memory usage.