wavelet wrote:
a.exe is one programming writen with c/c++ language.
a.exe will be called multi-times by another programming.
Now I want to check how much memory is used by a.exe
or whether some memory leak happens . Is there any API
interface availabe or tools for this purpose on both
windows and Unix?
RGS
Wavelet
This question is off topic for comp.lang.c++.
I don't know much about windows, but Solaris has a a number of tools.
Firstly, "pmap" gives you a nice breakdown of the process' memory usage.
If you're on x86 you can probably compile Valgrind for solaris: that's
pretty much the golden standard. If you're on Sparc then I suggest the
open source Dmalloc library. Electric fence is an oldie but a goodie,
and it's had leak detection bolted on.
Jacques.