By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,652 Members | 1,487 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,652 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Oct 10 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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?


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

You need to google for a memory profiler.

Regards,

--John Ratliff
Oct 10 '05 #2

P: n/a
* 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).

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Oct 10 '05 #3

P: n/a
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.
Oct 10 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.