Hi,--I'm trying to accumulate time consumed in font functions.Currently, we reset the accumulated time on FCP. In the next step, I'd like to measure this for 1) before FCP and 2) before DOM content load.To do this, I'm thinking to change this to:
- Reset on the beginning of a new page.
- Report "before FCP" accumulated value at FCP.
- Report "before DOM content load" accumulated value at DOM content load.
Could you advise what is the best place to hook 1?I'd like to reset this even when we reuse the same renderer process. Set a break point at FrameLoader::StartNavigation but it looks like we don't call this for Refresh. Any pointers are greatly appreciated in advance.
You received this message because you are subscribed to the Google Groups "loading-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loading-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/loading-dev/CAHe_1dKd363j5r0uj%3DzdQ96f5fkF5uMzXNFmc9OEXjC%3DNOERyw%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "navigation-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to navigation-de...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/navigation-dev/CAPVAxLUNiN_fEpsto66V7Y4pi%2B_37W7W_wrEg8WewYptNx-atg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/loading-dev/CABg10jwtSZV0m6Eq9etBPfcNTrON6enVfvLPQXFKqUxfD0jofA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/navigation-dev/CABg10jwtSZV0m6Eq9etBPfcNTrON6enVfvLPQXFKqUxfD0jofA%40mail.gmail.com.
Note that DidCommitNavigation() won't be fired for bfcache restore/prerender activation etc because the page is not freshly loaded/committed. So if you want to reset during those times as well, you'd probably also need to listen to PageLifecycleState changes (or maybe there are better ways to detect activation?).
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/navigation-dev/CABg10jzhiR1LeP62sie4Y5RJ0eF7N%2BLTnSJOYhbvSj77yndXBg%40mail.gmail.com.
Thank you all for the replies.The tricky part is that we want to measure time spent in the platform code while core is loading the page. Attaching to DOMWindow means the platform needs to know which DOMWindow the renderer process is currently working on. This is still at an early stage of the investigation, so if anyone has better ideas how to handle this, including not to make it per-process global, happy to discuss more.Re. bfcache, haraken is right, if we're not firing FCP/DOMContentLoaded, we don't need to reset.Sounds like DidCommitNavitation is the one, unless anyone has better ideas to handle performance counters in the platform code?
ThanksRight, currently, FontCache is process-global, we'll need to change that to make the metrics not global.IIUC your suggestion, copy the values at DidCommitNavitation, then compute the diff at FCP/DomContentLoaded? Good point, it can work when we have multiple documents per process. Thanks for the suggestion!