diff options
author | Aria <me@aria.rip> | 2023-11-30 17:49:33 +0000 |
---|---|---|
committer | Aria <me@aria.rip> | 2023-11-30 17:49:33 +0000 |
commit | 329d9ec18957525514dd9bf1d69deaf410e19326 (patch) | |
tree | bb0148006878cf996cb1dd4bf02ea816ef5c9f14 | |
parent | 947da9820855181fc07dc06fe14416a046225487 (diff) |
feat(profiler): dont track allocation site backtrace
-rw-r--r-- | src/crates/library/src/profiler.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/crates/library/src/profiler.rs b/src/crates/library/src/profiler.rs index c5280bd..e2bfa46 100644 --- a/src/crates/library/src/profiler.rs +++ b/src/crates/library/src/profiler.rs @@ -3,7 +3,6 @@ use std::{backtrace::Backtrace, env::var, fs::File, io::Write, time::SystemTime} use crate::traits::{Container, Indexable, Stack}; pub struct ProfilerWrapper<T> { - alloc_site: Backtrace, inner: T, sum_ns: usize, n_contains: usize, @@ -20,7 +19,6 @@ pub struct ProfilerWrapper<T> { impl<T: Default> Default for ProfilerWrapper<T> { fn default() -> Self { Self { - alloc_site: Backtrace::capture(), inner: T::default(), sum_ns: 0, n_contains: 0, @@ -123,6 +121,5 @@ impl<T> Drop for ProfilerWrapper<T> { writeln!(f, "{}", self.n_nth).unwrap(); writeln!(f, "{}", self.n_push).unwrap(); writeln!(f, "{}", self.n_pop).unwrap(); - writeln!(f, "{:?}", self.alloc_site).unwrap(); } } |