alencool / FancyStat

FancyStat is a stat add on for your working allocator.c implementation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FancyStat

FancyStat is a stat add on for your working allocator.c implementation, and displays hopefully a useful 2d diagram of the managed memory from allocator.c

Alt text

FancyStat is distributed using the GNU General Public License.

Installation:

  1. Add #include "fancystat.c" at the very bottom of your working allocator.c
  2. Edit line 105 of run_sal.c from:
       else if (line[0] == '!') 
         sal_stats();
    
    To:
    else if (line[0] == '!') 
     sal_stats2(ptr);
    


    Edit line 53 of allocator.h from
    void sal_stats(void);
    

    To:
    ``` void sal_stats(void); void sal_stats2(void * alpha[26]); ```
  3. Run make
  4. Enjoy!

Requirements

FancyStat has the following dependencies:

About

FancyStat is a stat add on for your working allocator.c implementation.

License:GNU General Public License v2.0


Languages

Language:C 100.0%