# I can't help but think debugging memory allocations shouldn't be this hard

**URL:** <https://discourse.julialang.org/t/i-cant-help-but-think-debugging-memory-allocations-shouldnt-be-this-hard/105042>\
**Category:** General Usage\
**Created:** [October 17, 2023, 2:05am UTC](https://discourse.julialang.org/t/i-cant-help-but-think-debugging-memory-allocations-shouldnt-be-this-hard/105042 "2023-10-17T02:05:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vchuravy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vchuravy/32/8_2.png) [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Post date:** [October 17, 2023, 2:17am UTC](https://discourse.julialang.org/t/i-cant-help-but-think-debugging-memory-allocations-shouldnt-be-this-hard/105042/2 "2023-10-17T02:17:45Z")

</div>

I have proposed removing `--track-lallocation` since it is prone to false-positives.

> <https://github.com/JuliaLang/julia/pull/48070>
>
> Prior to Julia 1.9 \`--track-allocation\` was one of the only ways to track where …allocations where coming from in Julia.
> The way it functions is to change the emitted LLVM IR to insert code that tracks allocations occuring.
> This often leads to false-positives since these statements interfere with optimization (in particular escape analysis)
> and @simonbyrne and I once spend a particular fun couple of days hunting down ghosts.
> 
> Since it changes the emitted code it also does not particular play well with package images.
> 
> I believe there is no remaining use-case for \`--track-allocation\` that would not be better served by using the allocation profiler,
> and I am proposing to remove of the \`--track-allocation\` feature in 1.10. 
> 
> Are there users of \`--track-allocation\` that would object? Are there use-cases where you have fund it particular useful that are not covered by the allocation profiler?

I strongly recommend using the allocation profiler instead to gain insights.

---

_[View the full topic](https://discourse.julialang.org/t/i-cant-help-but-think-debugging-memory-allocations-shouldnt-be-this-hard/105042)._
