# Creating a call graph for Julia

**URL:** <https://discourse.julialang.org/t/creating-a-call-graph-for-julia/105857>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 6, 2023, 1:52pm UTC](https://discourse.julialang.org/t/creating-a-call-graph-for-julia/105857 "2023-11-06T13:52:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [November 6, 2023, 1:52pm UTC](https://discourse.julialang.org/t/creating-a-call-graph-for-julia/105857/1 "2023-11-06T13:52:03Z")

</div>

Is there a tool to create a call graph from a Julia function?

See: [What is a Call Graph? And How to Generate them Automatically](https://www.freecodecamp.org/news/how-to-automate-call-graph-creation/#dynamic-vs-static-call-graphs)

---

<div class="post-metadata">

**Author:** ![Zentrik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zentrik/32/35409_2.png) [@Zentrik](https://discourse.julialang.org/u/Zentrik)\
**Post date:** [November 6, 2023, 3:34pm UTC](https://discourse.julialang.org/t/creating-a-call-graph-for-julia/105857/2 "2023-11-06T15:34:08Z")

</div>

Cthulhu should be calculating the static call graph here, [https://github.com/JuliaDebug/Cthulhu.jl/blob/43f52ca05822eed533b0c9c6d85e1e44ebeb1e5a/src/codeview.jl#L342](https://github.com/JuliaDebug/Cthulhu.jl/blob/43f52ca05822eed533b0c9c6d85e1e44ebeb1e5a/src/codeview.jl#L342).  
Not aware of a nice way to do this though.
