tcmalloc 0.1.0

Drop-in global allocator using tcmalloc
docs.rs failed to build tcmalloc-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: tcmalloc-0.3.0

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.

#![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.