Are you running multiple julia threads? I found similar results when profiling anything if julia was launched with more than one thread. Profiling seems to work properly for me only when julia is launched with a single thread. If you’re using Juno, note that it launches julia with multiple threads by default. See the following, for example:
Pbellive
6
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Why is the profile view so scrunched up to the right? | 7 | 581 | April 5, 2022 | |
| How to understand the ProfileView output | 3 | 2059 | April 29, 2022 | |
| Profile results contains no samples from my code | 2 | 184 | May 6, 2025 | |
| Profiler doesn't show Threads | 6 | 729 | February 6, 2024 | |
| Multi-threading Heisenbug: code is faster when profiled | 5 | 443 | November 28, 2025 |