Event-based or instrumentation profiler for julia?

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

I found the TimerOutputs seems useful for this job. Is this the correct way to go? Thanks.