It's a TODO in the current code because of the weird way we link in jemalloc on linux.
Created attachment 437729 [details] [diff] [review] Report jemalloc stats in about:memory on linux Note: we could also use libc's mallinfo() for non-jemalloc builds, but I'm not sure that I care about those.
Comment on attachment 437729 [details] [diff] [review] Report jemalloc stats in about:memory on linux ick, but ok! Can't we cheat and include jemalloc.h anyway? Worst case we could split up jemalloc.h into jemalloc-structs.h and jemalloc.h so that we could include the structs bit here. But this is probably ok for now.
Yeah, I thought about splitting the header. I'll push with that.
http://hg.mozilla.org/mozilla-central/rev/f223c7d06f91 (with split header, ran it by vlad again before pushing)