An open API service indexing awesome lists of open source software.

https://github.com/sigmapitech/alloc_stats

How many malloc to remove from your program
https://github.com/sigmapitech/alloc_stats

Last synced: 4 months ago
JSON representation

How many malloc to remove from your program

Awesome Lists containing this project

README

          

# Alloc stat

![demo](showcase.png)

## Usage

set the `AS_VERBOSE` environment variable to `1` to print every allocation call.

### using Nix

> Run directly
```sh
nix run github:Sigmapitech/alloc_stats -- ls
```

### without Nix

> Clone the repository
```sh
git clone Sigmapitech/alloc_stats
cd alloc_stats
```

> Build the library
```sh
make
```

> Run by using preloading
```sh
LD_PRELOAD=liballoc_stats.so ls
```