Ludo Brands wrote:
- Maybe there's a workaround? IOW, can someone successfully
use massif
with FPC programs?
This is known problem not related to fpc. Run
valgrind --tool=massif --run-libc-freeres=no ./trivial_alloc
Fantastic, many thanks, it works like a charm now! :) Both on trivial
te
Sven Barth wrote:
You could try whether heaptrc is of any help for you (see here:
http://www.freepascal.org/docs-html/rtl/heaptrc/usage.html ). If not it
might at least provide a starting point if you should decide to write a
custom memory profiler. Otherwise I don't know of any FPC based memory
> Hi,
>
> I wanted to debug where my program uses the most memory.
> (There are no
> memory leaks, but I want to optimize memory usage on some
> large inputs.
> As the code is quite large, simply guessing which part is responsible
> becomes quite hard :) In the past, I happily used valgrind's
Am 11.05.2012 02:40, schrieb Michalis Kamburelis:
2. Is there any other reliable memory profiler for FPC? As you can swap
memory manager in Pascal, and FPC can give you a backtrace, I suppose
it's quite possible to just write a unit that works between your program
and standard memory manager, and