Tag Archives: memory use

Get the program’s memory usage in C#

This example uses the following code to display information about its memory usage. // Display information about the current process’s memory usage. private void Form1_Load(object sender, EventArgs e) { Process proc = Process.GetCurrentProcess(); AddItem(lvMemory, “Min Working Set”, ((double)proc.MinWorkingSet).ToFileSize()); AddItem(lvMemory, “Max … Continue reading

Posted in memory, programs | Tagged , , , , , , , , | Leave a comment