# Profile results contains no samples from my code

**URL:** <https://discourse.julialang.org/t/profile-results-contains-no-samples-from-my-code/128630>\
**Category:** General Usage\
**Tags:** profile\
**Created:** [May 2, 2025, 2:35pm UTC](https://discourse.julialang.org/t/profile-results-contains-no-samples-from-my-code/128630 "2025-05-02T14:35:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xor0110](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xor0110/32/7926_2.png) [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Post date:** [May 2, 2025, 2:35pm UTC](https://discourse.julialang.org/t/profile-results-contains-no-samples-from-my-code/128630/1 "2025-05-02T14:35:30Z")

</div>

I’m trying to profile my code, the analysis takes a minute or so to run with the cpu at 50%. But no matter what I do, running @profile or @profview gives me results that seem to have no samples from my code. For instance, I just got this output:

```julia
Overhead ╎ [+additional indent] Count File:Line; Function
=========================================================
     ╎31886 @Base/task.jl:694; task_done_hook(t::Task)
     ╎ 31886 @Base/task.jl:1021; wait()
31885╎ 31886 @Base/task.jl:1012; poptask(W::Base.IntrusiveLinkedListSynchronized{Task})
Total snapshots: 31886. Utilization: 0% across all threads and tasks. Use the `groupby` kwarg to break down by thread and/or task.

```

---

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [May 2, 2025, 6:18pm UTC](https://discourse.julialang.org/t/profile-results-contains-no-samples-from-my-code/128630/2 "2025-05-02T18:18:26Z")

</div>

This used to happen to me sometimes, but I don’t remember the context any more. Can you reproduce in a barebones Julia REPL, so without any possibility of VS Code interference?

---

<div class="post-metadata">

**Author:** ![xor0110](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xor0110/32/7926_2.png) [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Post date:** [May 6, 2025, 7:52am UTC](https://discourse.julialang.org/t/profile-results-contains-no-samples-from-my-code/128630/3 "2025-05-06T07:52:25Z")

</div>

Happens on the REPL as well. It seems running with 1 thread might help, but it’s also not clear for me is the issue is just with Profile or ProfileView
