If this would work, that would make many people happy ! It would be basically make tracking progress a no-cost option.
On 08 Dec 2015, at 10:29, Denis Kudriashov <dionisiydk@gmail.com> wrote:
2015-12-08 10:16 GMT+01:00 Thierry Goubier <thierry.goubier@gmail.com>: Wishfull thinking:
you have a tradeoff when you do that, you interrupt running code and so changes timings and synchronisations, your scan takes time, and things below your sampling frequency are not visible.
That being said, and if you take those factors into account, then your approach is sound. Just don't say it is a miracle solution.
Yes, of course. I mean that such approach should not has so big impact on performance as direct announcing inside loop. Most time it will spend on updating/drawing progress bar. And it is not comparable to time which required to scan call chain. In most cases call chain has very small deep. And retrieving information about progress looks like trivial operation. Besides this analysing happens only when track process wake up. So It gives seconds to run code without interruption.
I will try find code. But it was not ready to use solution. Just very little experiment for my UI framework Presenty.