how can see the memory usage for one process in Windows/Solaris?

W

wavelet

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
 
A

Alf P. Steinbach

* wavelet:
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?

Not in standard C++.

And system-specific APIs are off-topic in this group (read the
welcome-message, posted monthly here, and the FAQ).
 
J

John Ratliff

wavelet said:
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?

Sure, but this has nothing to do with C++.

You need to google for a memory profiler.

Regards,

--John Ratliff
 
J

Jacques Labuschagne

wavelet said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top