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

profiling memory

P: 2
hi,
i have an ambedded application and i need to know space memory consumed (RAM) by each functions of my code which write with c c++ language i need a name of tool which can do this ????
thanks.
Apr 8 '17 #1
Share this Question
Share on Google+
3 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
I can't recommend a profiler. But if you look on the internet for a memory profiler you will find several tools available.
Apr 8 '17 #2

P: 2
There are several tools but they are not compatible with my needs :(
Apr 8 '17 #3

weaknessforcats
Expert Mod 5K+
P: 9,197
I assume all of your memory allocation is on the heap. Stack allocations are bad news since they are limited in size. That said, you must be using a memory allocator, like operator new in C++.

My first suggestion is you write your own operator new which contains the profiling you want and then goes on to use std::operator new do do the actual allocation.

When profiling is complete, just remove your profiling operator new from the code set and then rebuild.
Apr 8 '17 #4

Post your reply

Sign in to post your reply or Sign up for a free account.