Skip to content

Commit

Permalink
make thread_sleeping definition a bit more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Oct 7, 2024
1 parent 663b96e commit 0b08ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/PProf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 0b08ea7

Please sign in to comment.