What is the .NET equivalent of PHP's memory_get_usage?
- by Sam
PHP has the function memory_get_usage to report the amount of memory a PHP script has. How can you do the same thing in .NET (ASP.NET C#)?
Also, can you report on how much memory an object is taking (e.g. SiteMap or DataTable)?