Is there a call to read task id?

Dear All,

from a toy school demonstration project on IRTools, I have started to work on https://github.com/pevnak/LoggingProfiler.jl, which surrounds every call by a logging its start and its end. I want to create something like parallel heatmap as is on this figure
https://github.com/pevnak/LoggingProfiler.jl/blob/main/docs/src/multi_threadded_luxor.png

But in Julia 1.7 The task migration complicates reconstruction of the flamegraph. Is there a call, which would tell me which task is being executed?

Thanks a lot in advance,
Tomas

I might have find it, current_task()