|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Get Memory Usage of my ProgramHi , how can i get the current memory usage of my program (like the memory
usage of the task manager ) greetings Hi,
Tim Anderson's IT Writing to the rescue ;-) Check out this article from the aforementioned resource... <http://www.itwriting.com/dotnetmem.php> Regards, Cerebrus. Dim c As Process = Process.GetCurrentProcess()
MessageBox.Show("Mem Usage (Working Set): " & c.WorkingSet / 1024 & " K" & vbCrLf _ & "VM Size (Private Bytes): " & c.PagedMemorySize / 1024 & " K" & vbCrLf _ & "GC TotalMemory: " & GC.GetTotalMemory(True) & " bytes", "Current Memory Usage") If you would like to retrieve the size of the managed heaps and other memory info see the PerformanceCounter class in the help. -TP Andreas Kammann wrote: Show quoteHide quote > Hi , how can i get the current memory usage of my program (like the > memory usage of the task manager ) > greetings
Get the selected value from a listbox
Help Needed WIth Printing BN.NET 2005 Patterns anyone? dll not reading .config ? Importing from Excel Passing a Variable from one web site to another for ASP Passing Vb equivilent of "structs" between forms settings.settings ?? Use active directory to scan for software on a remote system? Reading an argument given to the program when started |
|||||||||||||||||||||||