public
Fork of federicomenaquintero/bprof
Description: LD_PRELOAD hooks for GMemVTable
Homepage: http://live.gnome.org/SummerOfCode2008/Ideas/MemoryFragmentation
Clone URL: git://github.com/asoare/bprof.git
Andrei Soare (author)
Fri Aug 15 17:18:56 -0700 2008
commit  7d3ce7e275d385ab85994f1f2c4d9d2f07289bec
tree    e7c2cb8e0d0d78990de9be9b1e8470b61a1bcbd1
parent  c07753b1a1cf6459944582c8ec55ee1542d201a8
bprof /
README
This readme contains a short description of all the tools in this project:


--------------------------------------
my_malloc_hook.c and my_gmalloc_hook.c

These are the hooks I use to get data about all the allocations while running a specific program. 
After "making" them, they are used like this: LD_PRELOAD=my_malloc_hook.so program
The outpul file(s) will be created in /tmp

--------------------------------------
free_size.c

This tool is used to find the sizes of all deallocations from my_malloc_hook and my_gmalloc_hook's output.
It is called like this: free_size input_file output_file

--------------------------------------
most_allocations.sh and most_allocated.sh

Theese tools are based on valgrind's output and determine which lines of code generate the most allocations during the 
execution of a program and which functions allocate the most memory, respectively.
They are called like this: most_allocations.sh program and most_allocated.sh program

--------------------------------------
memview.py

This tool generates images based on free_size's output.
It is called without any arguments, but in the current folder there must be a file called trace-out.txt, which is the 
input file.

--------------------------------------