Is there a call to read task id?

Dear All,

from a toy school demonstration project on IRTools, I have started to work on GitHub - pevnak/LoggingProfiler.jl: A profiler that logs beggning and and of each function, 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
LoggingProfiler.jl/multi_threadded_luxor.png at main · pevnak/LoggingProfiler.jl · GitHub

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()