treewide: set up Hotpath for benchmarking individual allocations

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0351e5753996e6d0391fc9e2f329878a6a6a6964
This commit is contained in:
raf 2025-11-17 17:39:21 +03:00
commit 2a6fe2a3f1
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
8 changed files with 1075 additions and 3 deletions

View file

@ -1,5 +1,6 @@
use std::{io, mem::MaybeUninit};
#[cfg_attr(feature = "hotpath", hotpath::measure)]
pub fn get_current() -> Result<String, io::Error> {
let uptime_seconds = {
let mut info = MaybeUninit::uninit();