Instrument FreeType allocations.

This will allow reporting of memory usage by FreeType instances, which
are measured in the MiBs for LayoutWorker threads.

This change also makes FreeType allocations happen with jemalloc instead
of the system malloc, which is a good thing.

Finally, the change documents some dubiousness involving
FontContextHandle.
This commit is contained in:
Nicholas Nethercote 2015-06-08 20:38:01 -07:00
parent 93a45c91d1
commit 1553fada53
4 changed files with 85 additions and 13 deletions

View file

@ -16,6 +16,7 @@
#[macro_use]
extern crate log;
extern crate alloc;
extern crate azure;
#[macro_use] extern crate bitflags;
extern crate fnv;