using static System.Console;
using System.Diagnostics;
public class Program {
public static void Main() {
using (var proc = Process.GetCurrentProcess()) {
WriteLine(proc.PrivateMemorySize64);
WriteLine(proc.WorkingSet64);
}
}
}
//https://pt.stackoverflow.com/q/198632/101
dXNpbmcgc3RhdGljIFN5c3RlbS5Db25zb2xlOwp1c2luZyBTeXN0ZW0uRGlhZ25vc3RpY3M7CgpwdWJsaWMgY2xhc3MgUHJvZ3JhbSB7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpIHsKCQl1c2luZyAodmFyIHByb2MgPSBQcm9jZXNzLkdldEN1cnJlbnRQcm9jZXNzKCkpIHsKCQkJV3JpdGVMaW5lKHByb2MuUHJpdmF0ZU1lbW9yeVNpemU2NCk7CgkJCVdyaXRlTGluZShwcm9jLldvcmtpbmdTZXQ2NCk7CgkJfQoJfQp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8xOTg2MzIvMTAx