Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we find which script or function is taking longer than 50 ms? #28

Closed
Vasikaran opened this issue Jun 19, 2017 · 9 comments
Closed
Assignees

Comments

@Vasikaran
Copy link

Vasikaran commented Jun 19, 2017

In long task API has a name attribute, which value is self. It's not more specific detail to find long task. If we find which script or function is taking longer than 50 ms, the optimize is too easy.

@spanicker
Copy link
Contributor

Yes, long tasks V2 will have scriptUrl.
Details in this doc:
https://docs.google.com/document/d/125d69JAC7nyx-Ob0a9Z31d1uHUGu4myYQ3os9EnGfdU/edit

@Vasikaran
Copy link
Author

When will you release Long Task V2?

@spanicker
Copy link
Contributor

We are just starting to work on this, so hopefully in a couple of milestones.

@Vasikaran
Copy link
Author

If you release the feature within two or three weeks, it will be very helpful to me.

@RaoufHammami
Copy link

RaoufHammami commented Feb 17, 2020

Actually , i have the same question as @Vasikaran :
can we find which scripts are culprit for long Tasks (through the name field) and when the V2 of the API will be released.
Thanks

@npm1 npm1 reopened this Feb 18, 2020
@npm1
Copy link
Contributor

npm1 commented Feb 18, 2020

We currently do not plan to expose the script URL, AFAIK. We don't have any concrete future work on how to make attribution better in general. This was deprioritized because of an effort on the sampling profiler, see https://github.com/WICG/js-self-profiling. Ideally after that is shipped then we can use it to surface some longtask attribution.

@vigneshshanmugam
Copy link

We did some experiments at Elastic, here are the relevant details - WICG/js-self-profiling#21

@yoavweiss
Copy link
Contributor

FWIW, I'm cautiously hopeful to make progress on that using Task Tracking as infrastructure on top of which attribution can be built.

@noamr noamr self-assigned this Jan 17, 2023
@noamr
Copy link
Contributor

noamr commented Feb 5, 2023

Marking as duplicate of #89

@noamr noamr closed this as completed Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants