... | ... | @@ -145,6 +145,8 @@ There's quite a lot of churn in the memory allocations and deallocations on a bu |
|
|
|
|
|
When compiled (or even linked using `LD_PRELOAD`), `jemalloc` [can produce](https://github.com/jemalloc/jemalloc/wiki/Use-Case%3A-Heap-Profiling) **heap** snapshots based on triggers (time, size, ...). This can be later analyzed using the [`jeprof` tool](https://manpages.debian.org/unstable/libjemalloc-dev/jeprof.1.en.html) to see where the memory went.
|
|
|
|
|
|
The prerequisite for this to work is jemalloc library compiled with `./configure --enable-prof` option. Check if the option is present in output of `jemalloc-config --config` command. If it's not present you have to recompile the jemalloc library.
|
|
|
|
|
|
The basics are:
|
|
|
|
|
|
```
|
... | ... | |