How to get the number of bytes of physical memory mapped to the process context in C#

1 Answer

0 votes
namespace WinFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text = "WorkingSet: " + Environment.WorkingSet + " bytes";
        }
    }
}




/*
run:
 
WorkingSet: 55644160 bytes
  
*/

 



answered Nov 19, 2023 by avibootz

Related questions

...