473,398 Members | 2,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

profiling memory

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
3 1125
weaknessforcats
9,208 Expert Mod 8TB
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
There are several tools but they are not compatible with my needs :(
Apr 8 '17 #3
weaknessforcats
9,208 Expert Mod 8TB
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

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

Similar topics

2
by: barkha shah | last post by:
Hi , Can any one please suggest me the memory Leak detecting tool in Visual Studio.Net 2003 Release version Framework. Can I use Numega Bounds checker for this. Thanks and Regards. barkha
3
by: Peter Olcott | last post by:
What can anyone: (1) Tell Me about (2) Provide Links to (3) Recommend Books Pertaining to Memory Performance Optimization? The main thing that I am looking for is rules-of-thumb that maximize...
1
by: Peter | last post by:
Hi, I'm looking to find out more about profiling my code. Are the any free profiling solutions out there, or free microsoft tools that will help me profile my code? ANy recommendations. ...
14
by: Don HO | last post by:
Hi, We have found a memory leak on a php server after executing a php/mysql application. The configuration is php 4.3.1 + mysql on windows server 2000 with IIS. Does the memory leak come from...
5
by: Mike S | last post by:
I'm working on a .NET application that was under development by a previous developer, who is no longer working with the company. The program basically extracts records from a source database and...
7
by: toton | last post by:
Hi, I have a STL vector of of characters and the character class has a Boost array of points. The things are vector<Characterchars; and class Character{ private: array<Point,Npoints; }; Now...
2
by: chris.ritchie | last post by:
My question is very basic, but I can't find any material on it. Compare these: string x; // only used within the following loop for (int y = 0; y < 10; y++){ x = toString(y); use(x); } ...
3
by: Eddie | last post by:
Hi, I am looking for a method to profile memory usage in my python program. The program provides web service and therefore is intended to run for a long time. However, the memory usage tends to...
2
by: Jaroslaw Szczepankiewicz | last post by:
Hi is it possible to profile memory usage of single function, ideally it would be to see stack tree with memory info of each function (current usage of memory before and after executing function),...
0
by: David | last post by:
On Tue, May 6, 2008 at 4:21 PM, Banibrata Dutta <banibrata.dutta@gmail.comwrote: Thanks for your post. I didn't think of Googling for "python memory profiling". That search returns a lot of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.