diff --git a/Project.toml b/Project.toml index 13a5cd9..c10e12c 100644 --- a/Project.toml +++ b/Project.toml @@ -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" @@ -9,5 +9,5 @@ Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7" [compat] Formatting = "0.4" -PrettyTables = "0.9, 1, 2" +PrettyTables = "2" julia = "1" diff --git a/src/LinuxPerf.jl b/src/LinuxPerf.jl index 1e64096..e330e92 100644 --- a/src/LinuxPerf.jl +++ b/src/LinuxPerf.jl @@ -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)