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

**URL:** https://discourse.julialang.org/t/convenient-way-to-explore-package-dir-tree-with-many-mem-files/18678
**Category:** General Usage
**Created:** [December 15, 2018, 1:19am UTC](https://discourse.julialang.org/t/convenient-way-to-explore-package-dir-tree-with-many-mem-files/18678 "2018-12-15T01:19:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)
#### Post date: [December 15, 2018, 1:19am UTC](https://discourse.julialang.org/t/convenient-way-to-explore-package-dir-tree-with-many-mem-files/18678/1 "2018-12-15T01:19:13Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)
#### Post date: [December 15, 2018, 3:36pm UTC](https://discourse.julialang.org/t/convenient-way-to-explore-package-dir-tree-with-many-mem-files/18678/2 "2018-12-15T15:36:54Z")

</div>

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.
