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
- Host: GitHub
- URL: https://github.com/sigmapitech/alloc_stats
- Owner: Sigmapitech
- Created: 2024-02-17T20:21:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-02-17T22:51:26.000Z (4 months ago)
- Last Synced: 2026-02-18T04:27:18.443Z (4 months ago)
- Language: C
- Homepage:
- Size: 127 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alloc stat

## 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
```