Skip to content

Commit

Permalink
print available ram and test texture_atlas size
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Oct 12, 2023
1 parent 7752c34 commit 8dcea16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ReferenceTests/src/database.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ macro reference_test(name, code)
end
GC.gc(true)
elapsed = round(time() - t1; digits=3)
mem = (Sys.total_memory() - Sys.free_memory()) / 10^9
total = Sys.total_memory()
mem = round((Sys.total_memory() - Sys.free_memory()) / 10^9; digits=3)
# TODO, write to file and create an overview in the end, similar to the benchmark results!
println("Used RAM: $(mem), time: $(elapsed)s")
println("Used $(mem)gb of $(round(total; digits=3))gb RAM, time: $(elapsed)s")
end
end

Expand Down
1 change: 1 addition & 0 deletions WGLMakie/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ Makie.inline!(Makie.automatic)
recorded_files, recording_dir = @include_reference_tests "refimages.jl"
missing_images, scores = ReferenceTests.record_comparison(recording_dir)
ReferenceTests.test_comparison(scores; threshold = 0.032)
@test Base.summarysize(WGLMakie.TEXTURE_ATLAS) / 10^6 < 8.5
end

0 comments on commit 8dcea16

Please sign in to comment.