Skip to content

Commit 116668a

Browse files
committed
fix linux tests
Signed-off-by: Christian Jordan <[email protected]>
1 parent 396ff8e commit 116668a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/platform/nix_impl/profiler.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use smallvec::SmallVec;
77
use nix::sys::signal;
88

99
use crate::error::Result;
10-
use crate::profiler::PROFILER;
10+
use crate::profiler::{trigger_lazy, PROFILER};
1111
use crate::{MAX_DEPTH, MAX_THREAD_NAME};
1212

1313
pub fn register() -> Result<()> {

src/profiler.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub struct ProfilerGuard<'a> {
123123
timer: Option<Timer>,
124124
}
125125

126-
fn trigger_lazy() {
126+
pub(crate) fn trigger_lazy() {
127127
let _ = backtrace::Backtrace::new();
128128
let _profiler = PROFILER.read();
129129
}

0 commit comments

Comments
 (0)