Recent

Author Topic: heaptrc mem allocation  (Read 2463 times)

anonymousstranger

  • New Member
  • *
  • Posts: 49
heaptrc mem allocation
« on: September 21, 2018, 09:14:10 pm »
when heaptrc reports memory allocation sizes, is the number in bits, bytes, or what? I'm assuming bytes but I'm not sure.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: heaptrc mem allocation
« Reply #1 on: September 21, 2018, 11:27:40 pm »
when heaptrc reports memory allocation sizes, is the number in bits, bytes, or what? I'm assuming bytes but I'm not sure.
bytes for sure:
Code: [Select]
$ cat a.pas
begin
  GetMem(76);
end.

$ ./a
Heap dump by heaptrc unit of a
1 memory blocks allocated : 76/80
0 memory blocks freed     : 0/0
1 unfreed memory blocks : 76
True heap size : 32768
True free heap : 32480
Should be : 32496
Call trace for block $00007F6BC7BD9100 size 76

 

TinyPortal © 2005-2018