Skip to content

Commit

Permalink
Merge pull request JuliaPerf#28 from chriselrod/fixcountershow
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenbauer committed Oct 15, 2023
2 parents a830cb3 + 719644f commit 9239953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "LinuxPerf"
uuid = "b4c46c6c-4fb0-484d-a11a-41bc3392d094"
version = "0.3.5"
version = "0.3.6"

[deps]
Formatting = "59287772-0a20-5a39-b81b-1366585eb4c0"
Expand All @@ -9,5 +9,5 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"

[compat]
Formatting = "0.4"
PrettyTables = "0.9, 1, 2"
PrettyTables = "2"
julia = "1"
2 changes: 1 addition & 1 deletion src/LinuxPerf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function Base.show(io::IO, c::Counters)
c.running == 0 ? ["did not run" "0 %"] :
[format(Int64(c.value), commas=true) @sprintf("%.1f %%", 100*(c.running/c.enabled))]
end
return pretty_table(io, stats, ["Events", "Active Time"], row_names=events, alignment=:l, crop=:none, body_hlines=collect(axes(stats, 1)))
return pretty_table(io, stats, header=["Events", "Active Time"], row_labels=events, alignment=:l, crop=:none, body_hlines=collect(axes(stats, 1)))
end

enable!(b::PerfBench) = foreach(enable!, b.groups)
Expand Down

0 comments on commit 9239953

Please sign in to comment.