diff --git a/src/platform/nix_impl/profiler.rs b/src/platform/nix_impl/profiler.rs index 4b0015db..1d7411f1 100644 --- a/src/platform/nix_impl/profiler.rs +++ b/src/platform/nix_impl/profiler.rs @@ -7,7 +7,7 @@ use smallvec::SmallVec; use nix::sys::signal; use crate::error::Result; -use crate::profiler::PROFILER; +use crate::profiler::{trigger_lazy, PROFILER}; use crate::{MAX_DEPTH, MAX_THREAD_NAME}; pub fn register() -> Result<()> { diff --git a/src/profiler.rs b/src/profiler.rs index 1a69ef54..dccb0e88 100644 --- a/src/profiler.rs +++ b/src/profiler.rs @@ -123,7 +123,7 @@ pub struct ProfilerGuard<'a> { timer: Option, } -fn trigger_lazy() { +pub(crate) fn trigger_lazy() { let _ = backtrace::Backtrace::new(); let _profiler = PROFILER.read(); }