# Event-based or instrumentation profiler for julia?

**URL:** <https://discourse.julialang.org/t/event-based-or-instrumentation-profiler-for-julia/99895>\
**Category:** General Usage\
**Tags:** performance\
**Created:** [June 5, 2023, 2:25pm UTC](https://discourse.julialang.org/t/event-based-or-instrumentation-profiler-for-julia/99895 "2023-06-05T14:25:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![linwaytin](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Post date:** [June 5, 2023, 2:25pm UTC](https://discourse.julialang.org/t/event-based-or-instrumentation-profiler-for-julia/99895/1 "2023-06-05T14:25:39Z")

</div>

The built-in `Profile` is sampling-based, but I want to time a specific code block.

I found the [TimerOutputs](https://github.com/KristofferC/TimerOutputs.jl) seems useful for this job. Is this the correct way to go? Thanks.
