R
remlostime
now, i wanna how much memory my program use, what code should i add to
my code, or is there some program that can test it?
my code, or is there some program that can test it?
now, i wanna how much memory my program use, what code should i add to
my code, or is there some program that can test it?
remlostime said:now, i wanna how much memory my program use, what code should i add
to my code, or is there some program that can test it?
How you can do that is usually platform-specific and can be
complicated (e.g., on some platforms there isn't a nice number you can
look at and say "there, that's how much memory it uses!").
Your best option is probably to use a memory profiler such as the
Massif heap profiler that comes with Valgrind or the one in Apple's
development tools. A newsgroup or discussion forum specific to
development for your operating environment would be the appropriate
place to seek more information on the subject.
- Michael
Couldn't you do that just by looking at Processes in the Task Manager?
remlostime said:i'm using fc7
remlostime said:now, i wanna how much memory my program use, what code should i add to
my code, or is there some program that can test it?
top
What you care about is probably RSS or RES, the "resident set size."
remlostime said:I dont know what the difference between them, actually i wanna know
can i insert some code to my program and when it
ends it will show the sum of used memory
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.