www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Allocation trace

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.com> writes:
Hello, does anyone have traces of allocations from real applications? 
Looking for the sequence of calls to malloc, realloc, and free, e.g.:

0 malloc 128
1 malloc 8192
2 malloc 32
3 free 1
...


Thanks,

Andrei
Jun 24 2017
next sibling parent reply Shachar Shemesh <shachar weka.io> writes:
I'm assuming you're looking for mallocs by applications that actually 
use the GC, right? :-)

Shachar

On 25/06/17 01:15, Andrei Alexandrescu wrote:
 Hello, does anyone have traces of allocations from real applications? 
 Looking for the sequence of calls to malloc, realloc, and free, e.g.:
 
 0 malloc 128
 1 malloc 8192
 2 malloc 32
 3 free 1
 ...
 
 
 Thanks,
 
 Andrei
Jun 26 2017
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.com> writes:
On 6/26/17 3:20 PM, Shachar Shemesh wrote:
 I'm assuming you're looking for mallocs by applications that actually 
 use the GC, right? :-)
Looking for more traditional C/C++ applications that free memory explicitly. -- Andrei
Jun 26 2017
prev sibling parent sarn <sarn theartofmachinery.com> writes:
On Saturday, 24 June 2017 at 22:15:47 UTC, Andrei Alexandrescu 
wrote:
 Hello, does anyone have traces of allocations from real 
 applications? Looking for the sequence of calls to malloc, 
 realloc, and free, e.g.:

 0 malloc 128
 1 malloc 8192
 2 malloc 32
 3 free 1
 ...


 Thanks,

 Andrei
On *nix systems, you can use ltrace to generate this pretty easily.
Jun 26 2017