# What is wrong with my profiling?

**URL:** <https://discourse.julialang.org/t/what-is-wrong-with-my-profiling/34898>\
**Category:** Performance\
**Created:** [February 20, 2020, 12:40pm UTC](https://discourse.julialang.org/t/what-is-wrong-with-my-profiling/34898 "2020-02-20T12:40:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [February 20, 2020, 1:53pm UTC](https://discourse.julialang.org/t/what-is-wrong-with-my-profiling/34898/2 "2020-02-20T13:53:53Z")

</div>

1. did you make a small run to make sure everything is compiled? otherwise it will profile the compiler, which may not be the objective.

2. you may be running into

> [@Profiling code reveals that most time is used calling 3 functions in task.jl](https://discourse.julialang.org/t/profiling-code-reveals-that-most-time-is-used-calling-3-functions-in-task-jl/30751):
>
> I profiled my call to a function and got the following plot: Those first 3 long horizontal lines are calls to task\_done\_hook, then wait, then poptaskref (in ascending order). This happens even for the 2nd or 3rd call to my function, and I don’t understand what they could be. I stopped specifying a lot of the types used / returned in my functions after a while since I was losing time doing so properly - could this be the cause? How could I find out?

---

_[View the full topic](https://discourse.julialang.org/t/what-is-wrong-with-my-profiling/34898)._
