I want to use the Performance observer to debug the long tasks. It gives me every registered tong task but I can't find its origin.
I want to know is there a way to see the origin of the task or even the call stack like in the Performance dev tool of chrome.
const po = new PerformanceObserver(list => {
for (const entry of list.getEntries()) {
console.log('long task', entry);
}
});
po.observe({ type: 'longtask', buffered: true });
I found a similar question, but the solution is not satisfying for me, because I want to know is there a way to achieve this without marks