峰值内存使用量 [英] peak memory usage
问题描述
找到C ++程序峰值内存使用率的正确方法/工具是什么?
我试过Valgrind但似乎无法回答我的问题。
非常感谢,
Ray
Hi,
What is the right way/tool to find the peak memory usage of a C++ program?
I tried Valgrind but is does not seem to be able to answer my question.
Thanks a lot,
Ray
推荐答案
Rares Vernica写道:
Rares Vernica wrote:
什么是正确的方法/工具找到C ++程序的峰值内存使用情况?
Hi,
What is the right way/tool to find the peak memory usage of a C++ program?
要么自己使用自定义分配器,要么使用任何工具
运行环境提供。
-
Ian Collins。
Either do it yourself with a custom allocator, or use whatever tools
your operating environment provides.
--
Ian Collins.
Ian Collins写道:
Ian Collins wrote:
Rares Vernica写道:
Rares Vernica wrote:
>
什么是正确的方法/ tool查找C ++程序的峰值内存使用情况?
>Hi,
What is the right way/tool to find the peak memory usage of a C++ program?
使用自定义分配器自行完成,或者使用你的操作环境提供的任何工具
。
Either do it yourself with a custom allocator, or use whatever tools
your operating environment provides.
你能说出几个工具吗?我正在使用Linux。
我知道顶部显示内存使用情况,但它实时显示它并且它很难达到峰值。
谢谢,
Ray
Can you please name a few tools? I am using Linux.
I know "top" shows the memory usage, but it shows it in real time and it
is difficult to get the peak.
Thanks,
Ray
Rares Vernica写道:
Rares Vernica wrote:
Ian Collins写道:
Ian Collins wrote:
> Rares Vernica写道:
>Rares Vernica wrote:
>>
什么是正确的方法/工具找到C ++程序的峰值内存使用情况?
>>Hi,
What is the right way/tool to find the peak memory usage of a C++
program?
可以使用自定义分配器自行完成,也可以使用操作环境提供的任何工具。
Either do it yourself with a custom allocator, or use whatever tools
your operating environment provides.
你能说出几个工具吗?我正在使用Linux。
Can you please name a few tools? I am using Linux.
我更喜欢自定义分配器方法,对于工具,你应该在
a Linux开发组或comp上询问。 unix.programmer。
-
Ian Collins。
I prefer the custom allocator approach, as for tools, you should ask on
a Linux development group or comp.unix.programmer.
--
Ian Collins.
这篇关于峰值内存使用量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!