- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am looking for a software to record the peak memory (including virtual memory) used by a program when running it. Often the program runs for a long time and it is boring to watch the memory changes in Task Manager of Windows. Can anyone tell me how to record it automatically?
Thanks,
Zhanghong Tang
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried selecting the Peak Memory Usage checkbox on theView->Select Columns page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Win32 API function GlobalMemoryStatus returns the total available physical memory as well as the instantaneous available memory, which gives a rough idea of how much memory your program is using (of course, the memory-in-use value reflects all operating processes, not just your program).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank both of you very much!
Mitchell, can you tell me whether the actual peak memory used by a program includes the Virtual Memory listed in Task Manager?
Paul-Curtis, do you mean that the API function can't calculate the memory only used by my program?
Thanks,
Zhanghong Tang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Win API can calculate the memory used by your program but you'll have to know the process handle. After the creation of your process an external inquirer can retrieve the process handle and hence its specific memory usage. The prcview v 3.7.3.1 app freely available at http://www.prcview.com does this and some.
HTH,
Gerry T.
HTH,
Gerry T.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page