memory usage

A

Andreas Stenius

Hi,

Is there any standard c/c++ function to retrieve a current applications
memory usage (for benchmarking purposes)?

Regards,
Andreas
 
A

Attila Feher

Andreas said:
Hi,

Is there any standard c/c++ function to retrieve a current
applications memory usage (for benchmarking purposes)?

Nope, no such standard C++ function exists.
 
A

Andreas Stenius

Attila said:
Nope, no such standard C++ function exists.

Doh! ;)
Any sugestions as to any alternatives, or how to perform memory usage
benchmarks?

What I what to achieve is to see how much ram different modules uses in
my app.

Thanks for any help/pointers,
Andreas
 
D

David Harmon

Doh! ;)
Any sugestions as to any alternatives, or how to perform memory usage
benchmarks?

Check your implementation. It's not unusual to have some non-standard
extension provided to tell how much free memory you have left.
 
S

Sharad Kala

Andreas Stenius said:
Doh! ;)
Any sugestions as to any alternatives, or how to perform memory usage
benchmarks?

What I what to achieve is to see how much ram different modules uses in
my app.

Hey each implementation provides some kind of API to determine memory usage etc
details.
Check your vendor's compiler documentation.
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top