jemallocator icon indicating copy to clipboard operation
jemallocator copied to clipboard

support `prof.dump` and `prof.prefix`

Open yuhao-su opened this issue 2 years ago • 3 comments

yuhao-su avatar Jul 21 '23 09:07 yuhao-su

Hi @BusyJay , can you tell me how to pass the ci. I noticed the following test in ci. But the prof.dump and prof.prefix both requires profiling feature in jemalloc-sys and enable MALLOC_CONF=prof:true

cargo build --target "${TARGET}"
cargo test --target "${TARGET}"
cargo test --target "${TARGET}" --features profiling
cargo test --target "${TARGET}" --features debug
cargo test --target "${TARGET}" --features stats
cargo test --target "${TARGET}" --features 'debug profiling'

yuhao-su avatar Jul 28 '23 05:07 yuhao-su

The test case can be marked as enabled only when profiling feature is enabled by #[cfg(feature = "profiling")].

BusyJay avatar Jul 28 '23 15:07 BusyJay

I notice the ci failed on x64 linux, but I tried the following test on a EC2 (Ubuntu 22.04) and it passed. Could you give me a little help on what causes the failure? @BusyJay

JEMALLOC_SYS_RUN_JEMALLOC_TESTS=1 _RJEM_MALLOC_CONF=prof:true cargo test --target x86_64-unknown-linux-gnu --features profiling

yuhao-su avatar Aug 02 '23 09:08 yuhao-su