Skip to main content

Crate servo_allocator

Crate servo_allocator 

Source
Expand description

Selecting the default global allocator for Servo, and exposing common allocator introspection APIs for memory profiling.

BAO PATCH (embed): only install #[global_allocator] when feature install-global-allocator is enabled. Library embeds (e.g. frog tools path-dep on package bao) already provide their own process allocator (jemalloc / system); dual #[global_allocator] fails the link.

Modules§

libc_compat
Memory allocation APIs compatible with libc

Structs§

Allocator
Handle to the jemalloc allocator
HeapReport

Statics§

enclosing_size

Functions§

dump_unmeasured
heap_reports
is_tracking_unmeasured
usable_size
Get the size of a heap block.