# How can I measure the time to compile each function in a package?

**URL:** https://discourse.julialang.org/t/how-can-i-measure-the-time-to-compile-each-function-in-a-package/85749
**Category:** General Usage
**Tags:** question, compilation, profiling
**Created:** [August 14, 2022, 11:00pm UTC](https://discourse.julialang.org/t/how-can-i-measure-the-time-to-compile-each-function-in-a-package/85749 "2022-08-14T23:00:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![guilhermebodin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/guilhermebodin/32/6982_2.png) [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)
#### Post date: [August 14, 2022, 11:00pm UTC](https://discourse.julialang.org/t/how-can-i-measure-the-time-to-compile-each-function-in-a-package/85749/1 "2022-08-14T23:00:43Z")

</div>

When I profile the first time to do something in a package I find out that it is making a lot of LLVM passes, it is possible to profile on which functions these LLVM passes spend the most time?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/8/0894a0d9c04aa2880ab9b7d94394c8573845fdf3.png)
