# How to see every allocating function call?

**URL:** <https://discourse.julialang.org/t/how-to-see-every-allocating-function-call/93654>\
**Category:** Performance\
**Created:** [January 27, 2023, 6:55pm UTC](https://discourse.julialang.org/t/how-to-see-every-allocating-function-call/93654 "2023-01-27T18:55:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Post date:** [January 27, 2023, 6:55pm UTC](https://discourse.julialang.org/t/how-to-see-every-allocating-function-call/93654/1 "2023-01-27T18:55:41Z")

</div>

Hello!

I have a small simulation program I made in Julia. I have a main function, that when I call it, it runs the whole function - lets call it `Main()`.

Is there a macro similar to @profile for getting how many allocs each sub-functions has and where specifically it appears?

Kind regards

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [January 27, 2023, 8:34pm UTC](https://discourse.julialang.org/t/how-to-see-every-allocating-function-call/93654/2 "2023-01-27T20:34:25Z")

</div>

This [Profiling · The Julia Language](https://docs.julialang.org/en/v1/manual/profile/#Allocation-Profiler) with sample rate 1 I’d say
