On 2005-05-13, iceColdFire <ic*******@yahoo.com> wrote:
Hi,
I am writing some hybrid application s using C/C++ modules
together....Here I have created and used a lot of malloc(...) and
new(...) operators.
I am interested in checking on the optimisation part of the
programs...like memory consumed,memory leak , processor utilisation and
like...most of the info I got from task manager...however still I cand
find way to check on memory leaks...
Suggestions required on some good procedures or tools..
There are a number of leak checkers. A simple way to roll your own is to
overload operator new and that way you track allocations. Another way is
to get a leak checker. For example, there is a tool called ccmalloc that
tracks memory allocations and leaks. There are other more sophisticated
tools that also check for buffer overruns, etc.
For things like CPU usage, you probably should look for some sort of profiling
tool. These will track how much time different functions use, so you know
where you need to optimise.
Cheers,
--
Donovan Rebbechi
http://pegasus.rutgers.edu/~elflord/