Currently the longest running function (cumulative time) is always added to the roots even when it got parents. This case can occur when profiling threaded/async code with wall time. A function running in parallel can run longer than main.
Using the longest running function as root should be a fallback only when there are no functions without parents.
Currently the longest running function (cumulative time) is always added to the roots even when it got parents. This case can occur when profiling threaded/async code with wall time. A function running in parallel can run longer than main.
Using the longest running function as root should be a fallback only when there are no functions without parents.