Tag Archives: memory usage

Display memory usage in C#

This program displays the computer’s total and free physical, virtual, and page file memory usage. When it starts, the following code displays the system’s memory information in the program’s ListView control. // Prepare the ListView and display values. private void … Continue reading

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

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