# Profiling code reveals that most time is used calling 3 functions in task.jl

**URL:** <https://discourse.julialang.org/t/profiling-code-reveals-that-most-time-is-used-calling-3-functions-in-task-jl/30751>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 5, 2019, 3:11pm UTC](https://discourse.julialang.org/t/profiling-code-reveals-that-most-time-is-used-calling-3-functions-in-task-jl/30751 "2019-11-05T15:11:18Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Pbellive](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pbellive/32/3604_2.png) [@Pbellive](https://discourse.julialang.org/u/Pbellive)\
**Post date:** [November 5, 2019, 5:19pm UTC](https://discourse.julialang.org/t/profiling-code-reveals-that-most-time-is-used-calling-3-functions-in-task-jl/30751/6 "2019-11-05T17:19:51Z")

</div>

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:

[https://github.com/JunoLab/Juno.jl/issues/205](https://github.com/JunoLab/Juno.jl/issues/205)

---

_[View the full topic](https://discourse.julialang.org/t/profiling-code-reveals-that-most-time-is-used-calling-3-functions-in-task-jl/30751)._
