Track Rust memory usage by adding a 32 bytes header to all allocations. See https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html

Usage

You can use code below to enable usage of this library: ```rust use nearrustallocator_proxy::allocator::MyAllocator;

[global_allocator]

static ALLOC: MyAllocator = MyAllocator; ```

Design

Constants

Header representation

Allocation structure: * magic - unique 8 bytes identifier, which is used to mark memory allocations * size - size in bytes * tid - thread id * stack - stack trace during time of allocation

```rust

[repr(C)]

struct AllocHeader { magic: u64, size: u64, tid: u64, stack: [*mut cvoid; STACKSIZE], } ```

TODO