# How to debug compilation time and loading time of packages?

**URL:** <https://discourse.julialang.org/t/how-to-debug-compilation-time-and-loading-time-of-packages/31583>\
**Category:** Performance\
**Created:** [November 27, 2019, 3:48pm UTC](https://discourse.julialang.org/t/how-to-debug-compilation-time-and-loading-time-of-packages/31583 "2019-11-27T15:48:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![lgo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lgo/32/48751_2.png) [@lgo](https://discourse.julialang.org/u/lgo)\
**Post date:** [December 4, 2019, 7:33pm UTC](https://discourse.julialang.org/t/how-to-debug-compilation-time-and-loading-time-of-packages/31583/5 "2019-12-04T19:33:50Z")

</div>

> [@jonas-schulze](#):
>
> What am I missing?  
> Is this the wrong way?

I had the same problem and solved it by using `dev` instead of `add` when adding PackageCompiler (proposed [here](https://github.com/JuliaLang/PackageCompiler.jl/issues/184)). However, I’m now having the same problem as decribed in [this thread](https://discourse.julialang.org/t/compile-package-fails-on-nonregistered-package/21530/5).

---

_[View the full topic](https://discourse.julialang.org/t/how-to-debug-compilation-time-and-loading-time-of-packages/31583)._
