Giter VIP home page Giter VIP logo

Comments (5)

paullewis avatar paullewis commented on May 1, 2024

I like it. How do we guarantee ordering? (You could put at rest before initial), and how do we order within the set of gathers scheduled for a given lifecycle point? Last question: who instructs the driver to move to the next stage?

from lighthouse.

samccone avatar samccone commented on May 1, 2024

I am pretty convinced that some gather operations will be destructive (cause the browser to be in a state where no other gathers can run)

For now, allowing the gather to do whatever will continue to work, I think this is a deep deep rabbit hole if we start trying to optimize the gather phase. I am totally with you that the more times we revisit the page the more variance we will get (if we gather the same number twice) But I am not so convinced of the upside of trying to optimize the gather phase to reduce the number of reloads given the complexity cost of this task.

So long as each gather phase exits cleanly everything should be "OK"

For drool, i setup basic life-cycle hooks that you could put logic in for each memory test, that seemed to work out pretty OK for me.

https://github.com/samccone/drool/blob/master/docs/api.md#flow

from lighthouse.

paulirish avatar paulirish commented on May 1, 2024

Tried to capture a few usecase for timing in this doc: https://v.etherpad.org/p/MCiOMkGOcf

@deepanjanroy was thinking it may make more sense to have gathers extend a base class that has these lifecycle events defined.. e.g. setup, beforeLoaded, pageLoaded, teardown.

This is in line with how Telemetry does it, in fact. In key_silk_cases.py see __init__, RunNavigateSteps, RunPageInteractions PerformPageInteractions

from lighthouse.

paullewis avatar paullewis commented on May 1, 2024

There's already a gather base class IIRC so we should be gtg there.

from lighthouse.

paullewis avatar paullewis commented on May 1, 2024

Yyyyyyyeah https://github.com/GoogleChrome/lighthouse/blob/master/gatherers/gather.js

from lighthouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.