tikv / jemallocator

Rust allocator using jemalloc as a backend
Other
347 stars 58 forks source link

support `prof.dump` and `prof.prefix` #61

Open yuhao-su opened 1 year ago

yuhao-su commented 1 year ago

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'
BusyJay commented 1 year ago

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

yuhao-su commented 1 year ago

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