# Profiler hangs

**URL:** <https://discourse.julialang.org/t/profiler-hangs/88836>\
**Category:** General Usage\
**Created:** [October 17, 2022, 8:43am UTC](https://discourse.julialang.org/t/profiler-hangs/88836 "2022-10-17T08:43:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [October 17, 2022, 8:43am UTC](https://discourse.julialang.org/t/profiler-hangs/88836/1 "2022-10-17T08:43:14Z")

</div>

I have a function, that terminates fine if I run it.

```julia
f() # terminates after ~10s

```

However if I profile it, it does not:

```julia
using Profile
@profile f() 

```

CPU usage goes down to 0% after a few seconds while and the function does not terminate anymore. Also, I cannot interrupt using CTRL+C.

Is this something people have run into before? Any ideas on how to approach this?

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [October 17, 2022, 4:21pm UTC](https://discourse.julialang.org/t/profiler-hangs/88836/2 "2022-10-17T16:21:23Z")

</div>

Hard to say what’s going wrong without knowing what `f()` is doing. Slower execution during profiling is expected, but it shouldn’t stall outright.

Do you have a reproducible example you can share?

---

<div class="post-metadata">

**Author:** ![jw3126](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jw3126/32/3086_2.png) [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Post date:** [October 17, 2022, 7:09pm UTC](https://discourse.julialang.org/t/profiler-hangs/88836/3 "2022-10-17T19:09:23Z")

</div>

No, sadly I am far away from having an MWE, just wanted to check if this is a known phenomenon, before deciding to put effort into this.
