# Track memory allocation not working correctly

**URL:** <https://discourse.julialang.org/t/track-memory-allocation-not-working-correctly/57543>\
**Category:** General Usage\
**Tags:** performance\
**Created:** [March 19, 2021, 2:29pm UTC](https://discourse.julialang.org/t/track-memory-allocation-not-working-correctly/57543 "2021-03-19T14:29:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)\
**Post date:** [March 19, 2021, 4:19pm UTC](https://discourse.julialang.org/t/track-memory-allocation-not-working-correctly/57543/6 "2021-03-19T16:19:22Z")

</div>

It has one caveat, `@timeit` generates allocations on its own. So, nested calls are slightly biased. It is not a big problem, but can be source of confusion, when you have nice tight allocationless loop, but outer `@timeit` shows you that allocations exists.

---

_[View the full topic](https://discourse.julialang.org/t/track-memory-allocation-not-working-correctly/57543)._
