Convenient way to explore package dir tree with many .mem files

I ran code from a package starting julia with julia --track-allocations=user. This created a bunch of .mem files in the package directory tree.

Is there a convenient way to quickly locate the lines that are allocating the most? Or any suggestions whatsoever to explore this tree?

You can use coverage.jl (a package).
I commonly move all mem files in a folder an run

using Coverage
result=analyze_malloc(ThatFolderWithMemFiles)

This works quite well and you can easily sort by allocation. There might be a better way to do that (just read the readme of the coverage pkg).
Sorry that I cannot find the backtick on my phone to quote code.

1 Like