Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zshipko/memtrace-filters
https://github.com/zshipko/memtrace-filters
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/zshipko/memtrace-filters
- Owner: zshipko
- Created: 2020-12-12T16:07:12.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-28T01:46:21.000Z (about 3 years ago)
- Last Synced: 2023-08-27T00:34:24.385Z (about 1 year ago)
- Language: OCaml
- Size: 13.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Memtrace filters
Requires:
- Python
* Pandas
* Matplotlib
- OCaml
* Memtrace## irmin_index_memory.ml
Compares allocations from `Index` and `Irmin`
### Usage
Running `irmin-pack` benchmark with memtrace (in the irmin repo):
```shell
$ MEMTRACE=trace.ctf dune exec bench/irmin-pack/layers.exe
```Now in the `memtrace-filters` repo:
Save image and data file:
```shell
$ dune exec ./filters/irmin_index_memory.exe ../irmin/trace.ctf > data
$ python3 plot/irmin_index.py -i data -o output.png
```Save image to file (using pipe):
```shell
$ dune exec ./filters/irmin_index_memory.exe ../irmin/trace.ctf | python3 plot/irmin_index.py -o output.png
```Display in window:
```shell
$ dune exec ./filters/irmin_index_memory.exe ../irmin/trace.ctf | python3 plot/irmin_index.py
```Change title:
```shell
$ dune exec ./filters/irmin_index_memory.exe ../irmin/trace.ctf --title=$'my title with \n and \t will be displayed correctly'
```