Skip to content

Commit

Permalink
Add file save with tags and version
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzaare committed May 11, 2024
1 parent 7a438e8 commit 885bab7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ext/MakieExt/plotutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ function PerfChecker.table_to_pie(x::Table, ::Val{:alloc}; pkg_name = "")
inner_radius = 2,
radius = 4,
strokecolor = :white,
strokewidth = 5,
title = "Mallocs$str"
strokewidth = 5
)
ax.title = "Mallocs$str"
hidedecorations!(ax)
hidespines!(ax)
Legend(f[1, 2], [PolyElement(color = c) for c in colors], paths)
Expand Down
10 changes: 8 additions & 2 deletions perf/PatternFolds/allocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ end

@info x

for t in x.tables
display(table_to_pie(t, Val(:alloc)))
for (i, t) in enumerate(x.tables)
p = d[:pkgs]
@info "debug" p[1] p[2] p[3] p[4]
mkpath("perf/PatternFolds/output")
display(table_to_pie(t, Val(:alloc); pkg_name = "PatternFolds.jl"))
path = joinpath(
pwd(), "perf", "PatternFolds", "output", string(p[1], "_v$(p[3][i])", ".png"))
@info path
end

0 comments on commit 885bab7

Please sign in to comment.