jemallocator
jemallocator copied to clipboard
support `prof.dump` and `prof.prefix`
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'
The test case can be marked as enabled only when profiling feature is enabled by #[cfg(feature = "profiling")].
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