- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcas:
- Intel® Fortran Compiler
Link copiado
4 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Have you tried selecting the Peak Memory Usage checkbox on theView->Select Columns page?
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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).
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.

Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora