Memory usage of current thread on C# windows form app.
윈도우 폼을 만들어 실행할 때 현재 프로그램이 메모리를 얼마나 사용하는지, 어떤 동작에 메모리 변화가 어떤지 실시간으로 확인하고 싶은 경우가 많이 있죠. 그래서 다음과 같은 코드가 필요할 수 있습니다. 먼저 디자이너 코드에는 다음과 같이 Timer Class가 있어야 합니다. private System.Windows.Forms.Timer timer1; private void InitializeComponent() { this.timer1 = new System.Windows.Forms.Timer(this.components); // // timer1 // this.timer1.Enabled = true; this.timer1.Interval = 3000; // 3초마다 메모리 값을 읽어옵니다. this...