From 0b08ea7cb9a45faa1257d336a4873fd4889b9e11 Mon Sep 17 00:00:00 2001 From: d-netto <diogonetto.dcn@gmail.com> Date: Mon, 7 Oct 2024 10:37:43 -0300 Subject: [PATCH] make thread_sleeping definition a bit more robust --- Project.toml | 2 +- src/PProf.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index eb6c655..b24ac68 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "PProf" uuid = "e4faabce-9ead-11e9-39d9-4379958e3056" authors = ["Valentin Churavy <v.churavy@gmail.com>", "Nathan Daly <nhdaly@gmail.com>"] -version = "3.1.2" +version = "3.1.3" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" 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),