euv-performance 0.34.2

Reproducible CPU and heap benchmarks for the euv runtime, game engine, and chart library.
Documentation
1
2
3
4
5
6
7
8
9
10
use super::*;

#[global_allocator]
static ALLOCATOR: CountingAllocator = CountingAllocator;

thread_local! {
    pub(crate) static COUNTERS: Cell<AllocationStats> = const { Cell::new(AllocationStats {
        calls: 0, reallocations: 0, allocated: 0, freed: 0, live: 0, peak: 0,
    }) };
}