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
bprof /
name age message
file Makefile Wed Jul 30 05:35:12 -0700 2008 added a new program that calculates the fragmen... [Andrei Soare]
file README Thu Aug 14 05:17:54 -0700 2008 *improved memview.py, and minor modifications t... [Andrei Soare]
file _gnuplot.conf Wed Aug 06 03:30:24 -0700 2008 *added config file for gnuplot *fixed alloc_lif... [Andrei Soare]
file alloc_lifespan.sh Thu Aug 14 05:17:54 -0700 2008 *improved memview.py, and minor modifications t... [Andrei Soare]
file fragmentation.c Wed Aug 06 03:30:24 -0700 2008 *added config file for gnuplot *fixed alloc_lif... [Andrei Soare]
file free_size.c Fri Aug 15 17:18:56 -0700 2008 * improved memview.py, added the possibility to... [Andrei Soare]
file memview.py Fri Aug 15 17:18:56 -0700 2008 * improved memview.py, added the possibility to... [Andrei Soare]
file most_allocated.sh Sat Jun 28 14:58:20 -0700 2008 * fixed some bugs in free_size.c * modified mos... [Andrei Soare]
file most_allocations.sh Tue Jul 08 14:39:35 -0700 2008 just deleted a '#' character :) forgot to delet... [Andrei Soare]
file ms_main.c Thu Aug 14 05:17:54 -0700 2008 *improved memview.py, and minor modifications t... [Andrei Soare]
file my_gmalloc_hook.c Thu Aug 14 05:17:54 -0700 2008 *improved memview.py, and minor modifications t... [Andrei Soare]
file my_malloc_hook.c Thu Aug 14 05:17:54 -0700 2008 *improved memview.py, and minor modifications t... [Andrei Soare]
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.

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