Profile results contains no samples from my code

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:

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.
1 Like

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?

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

1 Like