From ac0fcaa7bfe2bb50eac53e10e95af716aab6ee38 Mon Sep 17 00:00:00 2001 From: d-netto Date: Mon, 7 Oct 2024 10:37:43 -0300 Subject: [PATCH] make thread_sleeping definition a bit more robust --- src/PProf.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PProf.jl b/src/PProf.jl index 95c7cb5..af15030 100644 --- a/src/PProf.jl +++ b/src/PProf.jl @@ -182,7 +182,7 @@ function pprof(data::Union{Nothing, Vector{UInt}} = nothing, threadid = data[idx - Profile.META_OFFSET_THREADID] meta = Label[ - Label!("thread_sleeping", thread_sleeping != 0), + Label!("thread_sleeping", thread_sleeping == 1), Label!("cycle_clock", cpu_cycle_clock, "nanoseconds"), Label!("taskid", taskid), Label!("threadid", threadid),