Profiling Threads code

Hi All,
Is there a way/tool/ or is it even possible to profile code running in threads?
All I’m getting currently (Mac OS, Xojo 2017r3) is a global time spent in the tread. No detail about what happened in thread code.

Thanks for any information/advice.

I’m not sure I understand. The profile certainly breaks up by threads.

Yes, you’re right, but I don’t understand why. Sure, it’s a technical limitation.
I’m wondering if there is a special workaround (using microseconds, maybe) or a dedicated tool able to profile the code inside a thread.

Forgive me, I’m still lost. The details of the thread are presented the same as they are on the main thread, no? What are you looking for that isn’t there?

Thread Profiling used to have some issues - If ThreadA yields to ThreadB, then the time spent in ThreadB would be counted or double-counted as belonging to ThreadA as well. I don’t know if that’s still happening or not. See <https://xojo.com/issue/10072>

The profiler only captures time spent in methods/event that are executed. If your thread doesn’t call any methods all the time is reported as the Run event of the method.