From 885bab7467eb90e23c31930e96613c3c6d761e56 Mon Sep 17 00:00:00 2001 From: azzaare Date: Sat, 11 May 2024 18:00:37 +0900 Subject: [PATCH] Add file save with tags and version --- ext/MakieExt/plotutils.jl | 4 ++-- perf/PatternFolds/allocs.jl | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ext/MakieExt/plotutils.jl b/ext/MakieExt/plotutils.jl index a6220b4..ecbbfb8 100644 --- a/ext/MakieExt/plotutils.jl +++ b/ext/MakieExt/plotutils.jl @@ -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) diff --git a/perf/PatternFolds/allocs.jl b/perf/PatternFolds/allocs.jl index 70d8a29..4156026 100644 --- a/perf/PatternFolds/allocs.jl +++ b/perf/PatternFolds/allocs.jl @@ -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