The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: How to Diagnose System Usage with a LINQ Query
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
james.curranPosted Dec 20, 2010, 12:53 PM
Those are actually the 5 using the LEAST memory. You saying for them to be sorted ascendingly (lowest first) I'm not sure of the VB, but the corrrect C# is: (from p in System.Diagnostics.Process.GetProcesses() let Size64 = p.WorkingSet64 orderby Size64 descending select new { p.ProcessName, Size = String.Format("{0:#,##0} KB", p.WorkingSet64/1000) }).Take(5)