tcmalloc

A drop-in GlobalAlloc implementation using tcmalloc from gperftools.

Travis badge crates.io badge

Usage

Keep in mind that as of today, GlobalAlloc is only available in nightly, hidden behind the global_allocator feature flag.

```rust

![feature(global_allocator)]

extern crate tcmalloc;

use tcmalloc::TCMalloc;

[global_allocator]

static GLOBAL: TCMalloc = TCMalloc; ```

Also note that you can only define one global allocator per crate.