Possible Duplicate:
How to Programmatically Tell How Much Memory an iOS App is Using?
I need to know how much memory is used by an iPhone an application when the application is running in foreground or background. it will better if it shows memory useage in every 5 sec. is it possible to write a code to show the memory in use ? Any suggestion will be appriciated